mirror of
https://github.com/IT4Change/boilerplate-frontend.git
synced 2025-12-13 07:35:53 +00:00
reuse vite.config in vitest.config
This commit is contained in:
parent
e6f34c0a81
commit
6fbce556a7
@ -1,18 +1,21 @@
|
|||||||
import vue from '@vitejs/plugin-vue' // Import the plugin here
|
import { defineConfig, mergeConfig } from 'vitest/config'
|
||||||
import { defineConfig } from 'vitest/config'
|
|
||||||
|
|
||||||
export default defineConfig({
|
import viteConfig from './vite.config'
|
||||||
test: {
|
|
||||||
globals: true,
|
export default mergeConfig(
|
||||||
environment: 'jsdom',
|
viteConfig,
|
||||||
setupFiles: ['tests/unit.setup.ts'],
|
defineConfig({
|
||||||
/*
|
test: {
|
||||||
server: {
|
globals: true,
|
||||||
deps: {
|
environment: 'jsdom',
|
||||||
inline: ['vuetify'],
|
setupFiles: ['tests/unit.setup.ts'],
|
||||||
|
/*
|
||||||
|
server: {
|
||||||
|
deps: {
|
||||||
|
inline: ['vuetify'],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
*/
|
||||||
},
|
},
|
||||||
*/
|
}),
|
||||||
},
|
)
|
||||||
plugins: [vue()], // Include it in your array of plugins here
|
|
||||||
})
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user