-
-
Notifications
You must be signed in to change notification settings - Fork 194
Expand file tree
/
Copy pathvitest.config.e2e.ts
More file actions
33 lines (30 loc) · 810 Bytes
/
vitest.config.e2e.ts
File metadata and controls
33 lines (30 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { resolve } from 'node:path'
import { defineConfig } from 'vitest/config'
const timeout = process.env.CI ? 50000 : 30000
process.env.NODE_ENV = process.env.VITE_TEST_BUILD
? 'production'
: 'development'
export default defineConfig({
resolve: {
alias: {
'~utils': resolve(__dirname, './playground/test-utils'),
},
},
test: {
include: ['./playground/**/*.spec.[tj]s'],
setupFiles: ['./playground/vitestSetup.ts'],
globalSetup: ['./playground/vitestGlobalSetup.ts'],
testTimeout: timeout,
hookTimeout: timeout,
reporters: 'dot',
onConsoleLog(log) {
if (log.match(/experimental|jit engine|emitted file|tailwind/i))
return false
},
expect: {
poll: {
timeout: 50 * (process.env.CI ? 200 : 50),
},
},
},
})