Harden HyperTwist website Vitest test boundaries

This commit is contained in:
axiomlogicnexus 2026-06-30 00:15:41 +00:00
parent ae625a8891
commit 66376726c4

View file

@ -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/**'],
},
})