-
-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathvitest.config.mjs
More file actions
46 lines (44 loc) · 863 Bytes
/
Copy pathvitest.config.mjs
File metadata and controls
46 lines (44 loc) · 863 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
38
39
40
41
42
43
44
45
46
import { defineConfig } from 'vitest/config'
import { playwright } from '@vitest/browser-playwright'
const browser = {
enabled: true,
provider: playwright(),
headless: true,
instances: [
{ browser: 'chromium' }
]
}
export default defineConfig({
test: {
projects: [
{
test: {
name: 'unit',
environment: 'node',
include: ['test/unit/**/*.test.ts']
}
},
{
test: {
name: 'browser',
include: ['test/browser/**/*.test.ts'],
browser
}
},
{
test: {
name: 'dist',
include: ['test/dist/**/*.test.ts'],
browser
}
},
{
test: {
name: 'package',
environment: 'node',
include: ['test/package/**/*.test.ts']
}
}
]
}
})