-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
32 lines (31 loc) · 881 Bytes
/
vitest.config.ts
File metadata and controls
32 lines (31 loc) · 881 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
import { playwright } from '@vitest/browser-playwright'
import { defineConfig } from 'vitest/config'
import config from './packages/vue-markdown-design/vite.config'
export default defineConfig({
test: {
projects: [
{
test: {
name: 'unit',
include: ['packages/**/__tests__/**/!(*.browser).spec.ts']
}
},
{
plugins: config.plugins,
test: {
name: 'browser',
include: [
'packages/**/__tests__/**/*.spec.tsx',
'packages/**/__tests__/**/*.browser.spec.ts'
],
browser: {
provider: playwright(),
enabled: true,
instances: [{ browser: 'chromium', viewport: { width: 1280, height: 720 } }]
},
setupFiles: ['./packages/vue-markdown-design/src/__tests__/setup.ts']
}
}
]
}
})