-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvitest.config.ts
More file actions
21 lines (20 loc) · 656 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
21 lines (20 loc) · 656 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/// <reference types="vitest" />
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
globals: true,
environment: 'node',
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
exclude: ['node_modules', 'dist', '.idea', '.git', '.cache'],
testTimeout: 30000,
hookTimeout: 30000,
teardownTimeout: 30000,
// Setup global test environment
setupFiles: ['./src/test-setup.ts'],
// Allow tests to access global ZERVA_DEVELOPMENT
define: {
ZERVA_DEVELOPMENT: 'globalThis.ZERVA_DEVELOPMENT',
ZERVA_PRODUCTION: 'globalThis.ZERVA_PRODUCTION',
},
} as any,
})