-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
35 lines (34 loc) · 984 Bytes
/
vitest.config.ts
File metadata and controls
35 lines (34 loc) · 984 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
import { playwright } from '@vitest/browser-playwright'
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
projects: [
{
// node test config
test: {
name: 'node',
include: ['./test/**/*.{test,spec}.?(c|m)[jt]s?(x)'],
},
},
{
// browser test config
test: {
name: 'browser',
include: ['./test/**/*.{test,spec}.?(c|m)[jt]s?(x)'],
browser: {
enabled: true,
headless: true,
provider: playwright(),
instances: [
{ browser: 'chromium' },
// It is highly recommend to give up firefox and webkit support to use v8 coverage provider, which is considered more stable.
// { browser: 'firefox' },
// Current flake.nix does not support webkit.
// { browser: 'webkit' },
],
},
},
},
],
},
})