Harden HyperTwist website Vitest test boundaries
This commit is contained in:
parent
ae625a8891
commit
66376726c4
1 changed files with 9 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { defineConfig } from 'vite'
|
||||
import { configDefaults } from 'vitest/config'
|
||||
import react from '@vitejs/plugin-react-swc'
|
||||
|
||||
export default defineConfig({
|
||||
|
|
@ -38,5 +39,13 @@ export default defineConfig({
|
|||
},
|
||||
test: {
|
||||
environment: 'jsdom',
|
||||
include: [
|
||||
'src/**/*.{test,spec}.{ts,tsx}',
|
||||
'src/**/__tests__/**/*.{ts,tsx}',
|
||||
'server/src/**/*.{test,spec}.ts',
|
||||
'server/src/**/__tests__/**/*.ts',
|
||||
'scripts/**/*.{test,spec}.mjs',
|
||||
],
|
||||
exclude: [...configDefaults.exclude, 'tests/e2e/**'],
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue