2024-04-16 20:07:22 +03:00
|
|
|
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,
|
2024-05-06 23:07:34 +03:00
|
|
|
// 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,
|
|
|
|
},
|
2024-04-16 20:07:22 +03:00
|
|
|
|
|
|
|
globalSetup: './src/tests/vitest.setup.ts',
|
|
|
|
},
|
|
|
|
}
|