-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathvitest.config.ts
More file actions
42 lines (41 loc) · 891 Bytes
/
vitest.config.ts
File metadata and controls
42 lines (41 loc) · 891 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
import path from 'node:path'
import { defineConfig } from 'vitest/config'
import stencil from './src/vite'
export default defineConfig({
test: {
watch: false,
coverage: {
enabled: true,
include: [
'src/**/*.ts',
'playground/components/**/*.tsx',
],
},
projects: [
{
test: {
name: 'unplugin',
include: ['test/**/*.test.ts'],
},
},
{
plugins: [
stencil({
rootPath: path.join(__dirname, 'playground'),
}),
],
test: {
dir: './playground',
name: 'playground',
include: ['**/*.spec.{ts,tsx}'],
browser: {
enabled: true,
headless: true,
provider: 'playwright',
instances: [{ browser: 'chromium' }],
},
},
},
],
},
})