mirror of
https://github.com/immich-app/immich.git
synced 2024-12-28 06:31:58 +00:00
fix: split up vite and vitest config
This commit is contained in:
parent
7074aaa57f
commit
40888c4900
3 changed files with 16 additions and 10 deletions
|
@ -13,5 +13,6 @@
|
|||
"target": "es2022",
|
||||
"types": ["vitest/globals"]
|
||||
},
|
||||
"extends": "./.svelte-kit/tsconfig.json"
|
||||
"extends": "./.svelte-kit/tsconfig.json",
|
||||
"files": ["./vitest.config.js"]
|
||||
}
|
||||
|
|
|
@ -43,13 +43,4 @@ export default defineConfig({
|
|||
optimizeDeps: {
|
||||
entries: ['src/**/*.{svelte,ts,html}'],
|
||||
},
|
||||
test: {
|
||||
include: ['src/**/*.{test,spec}.{js,ts}'],
|
||||
globals: true,
|
||||
environment: 'jsdom',
|
||||
setupFiles: ['./src/test-data/setup.ts'],
|
||||
sequence: {
|
||||
hooks: 'list',
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
14
web/vitest.config.js
Normal file
14
web/vitest.config.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
import { mergeConfig } from 'vitest/config';
|
||||
import viteConfig from './vite.config';
|
||||
|
||||
export default mergeConfig(viteConfig, {
|
||||
test: {
|
||||
include: ['src/**/*.{test,spec}.{js,ts}'],
|
||||
globals: true,
|
||||
environment: 'jsdom',
|
||||
setupFiles: ['./src/test-data/setup.ts'],
|
||||
sequence: {
|
||||
hooks: 'list',
|
||||
},
|
||||
},
|
||||
});
|
Loading…
Reference in a new issue