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 } from 'vitest/config'
|
||||
import { defineConfig, mergeConfig } from 'vitest/config'
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
globals: true,
|
||||
environment: 'jsdom',
|
||||
setupFiles: ['tests/unit.setup.ts'],
|
||||
/*
|
||||
server: {
|
||||
deps: {
|
||||
inline: ['vuetify'],
|
||||
import viteConfig from './vite.config'
|
||||
|
||||
export default mergeConfig(
|
||||
viteConfig,
|
||||
defineConfig({
|
||||
test: {
|
||||
globals: true,
|
||||
environment: 'jsdom',
|
||||
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