-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathvitest.config.ts
More file actions
37 lines (36 loc) · 840 Bytes
/
vitest.config.ts
File metadata and controls
37 lines (36 loc) · 840 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
34
35
36
37
import * as path from 'node:path'
import { defineWorkersConfig } from '@cloudflare/vitest-pool-workers/config'
export default defineWorkersConfig({
test: {
alias: {
'@': path.resolve(__dirname, './src'),
},
globals: true,
environment: 'node',
env: {
NODE_ENV: 'test',
},
deps: {
optimizer: {
ssr: {
enabled: true,
include: ['ajv', 'graphql', '@hono/graphql-server', 'statuses'],
},
},
},
poolOptions: {
workers: {
singleWorker: true,
wrangler: {
configPath: './wrangler.jsonc',
},
miniflare: {
compatibilityDate: '2025-04-01',
compatibilityFlags: ['nodejs_compat'],
isolatedStorage: false,
},
},
},
include: ['./test/**/*.test.ts'],
},
})