-
-
Notifications
You must be signed in to change notification settings - Fork 303
Expand file tree
/
Copy pathvitest.config.ts
More file actions
26 lines (24 loc) · 632 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
26 lines (24 loc) · 632 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 { defineConfig } from 'vitest/config';
import { playwright } from '@vitest/browser-playwright';
export default defineConfig({
test: {
globals: true,
environment: 'node',
include: [
'test/**/*.test.ts'
],
browser: {
enabled: true,
headless: true,
provider: playwright(),
// https://vitest.dev/config/browser/playwright
instances: [
{ browser: 'chromium' },
],
},
coverage: {
provider: 'v8',
reporter: ['text', 'lcov'],
},
},
})