wip
This commit is contained in:
@@ -9,9 +9,13 @@ export default defineConfig({
|
||||
},
|
||||
test: {
|
||||
globals: true,
|
||||
environment: 'node',
|
||||
include: ['tests/**/*.test.ts'],
|
||||
environment: 'jsdom',
|
||||
setupFiles: ['./tests/setup.ts'],
|
||||
include: ['tests/**/*.test.ts', 'tests/**/*.test.tsx'],
|
||||
exclude: ['tests/e2e/**/*'],
|
||||
env: {
|
||||
NODE_ENV: 'test',
|
||||
},
|
||||
coverage: {
|
||||
provider: 'v8',
|
||||
reporter: ['text', 'json', 'html'],
|
||||
@@ -34,6 +38,9 @@ export const e2eConfig = defineConfig({
|
||||
globals: true,
|
||||
environment: 'node',
|
||||
include: ['tests/e2e/**/*.e2e.test.ts'],
|
||||
env: {
|
||||
NODE_ENV: 'test',
|
||||
},
|
||||
// E2E tests need longer timeouts due to browser operations
|
||||
testTimeout: 120000,
|
||||
hookTimeout: 60000,
|
||||
|
||||
Reference in New Issue
Block a user