-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathvitest.e2e.config.ts
More file actions
26 lines (25 loc) · 896 Bytes
/
vitest.e2e.config.ts
File metadata and controls
26 lines (25 loc) · 896 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
import { resolve } from 'pathe'
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
globals: true,
environment: 'node',
include: ['tests/e2e/**/*.test.ts'],
testTimeout: 60000,
// E2E tests run sequentially - Nitro/filesystem resource contention
fileParallelism: false,
globalSetup: ['./tests/global-setup.ts'],
setupFiles: ['./tests/setup.ts'],
},
resolve: {
alias: {
'~': resolve(__dirname, './src'),
'@': resolve(__dirname, './src'),
'nitro-graphql/config': resolve(__dirname, './src/config.ts'),
'nitro-graphql/define': resolve(__dirname, './src/define.ts'),
'nitro-graphql/pubsub': resolve(__dirname, './src/core/pubsub/index.ts'),
'nitro-graphql/native': resolve(__dirname, './tests/mocks/native.ts'),
'graphql': resolve(__dirname, './node_modules/graphql'),
},
},
})