-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathvitest.config.ts
More file actions
57 lines (56 loc) · 1.54 KB
/
vitest.config.ts
File metadata and controls
57 lines (56 loc) · 1.54 KB
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
47
48
49
50
51
52
53
54
55
56
57
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
projects: [
'packages/*',
{
// Root project for e2e tests
test: {
include: ['e2e/**/*.{test,spec}.?(c|m)[jt]s?(x)'],
name: 'e2e',
},
},
],
exclude: [
'**/node_modules/**',
'**/dist/**',
'**/build/**',
'**/out/**',
'**/cypress/**',
'**/.{idea,git,cache,output,temp}/**',
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier,tsdown,uno}.config.*',
'ohos-typescript/**',
'sample/**/*',
'./packages/vscode/scripts/**',
'./packages/language-server/bin/**',
],
coverage: {
exclude: [
'coverage/**',
'dist/**',
'**/dist/**',
'out/**',
'scripts/**',
'**/out/**',
'**/[.]**',
'packages/*/test?(s)/**',
'**/*.d.ts',
'**/*virtual:*',
'**/__x00__*',
'**/\x00*',
'cypress/**',
'test?(s)/**',
'test?(-*).?(c|m)[jt]s?(x)',
'**/*{.,-}{test,spec}?(-d).?(c|m)[jt]s?(x)',
'**/*__tests__/**',
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,tsdown,uno,eslint}.config.*',
'**/*vitest.{workspace,projects}.[jt]s?(on)',
'**/.{eslint,mocha,prettier}rc.{?(c|m)js,yml}',
'ohos-typescript/**',
'sample/**/*',
'./packages/vscode/scripts/**',
'./packages/language-server/bin/**',
],
},
},
})