-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Expand file tree
/
Copy pathkit.vitest.config.js
More file actions
28 lines (27 loc) · 745 Bytes
/
kit.vitest.config.js
File metadata and controls
28 lines (27 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { fileURLToPath } from 'node:url';
import { defineConfig } from 'vitest/config';
// this file needs a custom name so that the numerous test subprojects don't all pick it up
export default defineConfig({
define: {
__SVELTEKIT_SERVER_TRACING_ENABLED__: false
},
server: {
watch: {
ignored: ['**/node_modules/**', '**/.svelte-kit/**']
}
},
test: {
alias: {
'__sveltekit/paths': fileURLToPath(new URL('./test/mocks/path.js', import.meta.url))
},
pool: 'threads',
maxWorkers: 1,
include: ['src/**/*.spec.js'],
exclude: [
'**/node_modules/**',
'**/.svelte-kit/**',
'**/.{idea,git,cache,output,temp}/**',
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*'
]
}
});