forked from github/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
23 lines (22 loc) · 763 Bytes
/
vitest.config.ts
File metadata and controls
23 lines (22 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
export default {
test: {
// Default is `['**/*.{test,spec}.?(c|m)[jt]s?(x)']`
include: ['**/*.{test}.?(c|m)[jt]s?(x)', 'src/**/tests/*.[jt]s', 'src/**/tests/**/*.[jt]s'],
exclude: ['**/tests/playwright-*.spec.ts'],
// Default is `!process.env.CI`
watch: false,
// vitest doesn't account for tsconfig.json `paths` settings so we have to
// manually set this alias to resolve our TS @-imports
alias: {
'@/': new URL('./src/', import.meta.url).pathname,
},
globalSetup: './src/tests/vitest.setup.ts',
teardownTimeout: 500,
},
server: {
deps: {
// Externalize @horizon-rs/language-guesser to avoid import assertion issues with vitest 4
external: ['@horizon-rs/language-guesser'],
},
},
}