forked from Buzzpy/Dev-Encyclopedia
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
40 lines (36 loc) · 941 Bytes
/
vitest.config.ts
File metadata and controls
40 lines (36 loc) · 941 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
/// <reference types="vitest" />
import { getViteConfig } from "astro/config"
export default getViteConfig(
{
test: {
// Vitest configuration options
// use the APIs globally like Jest
globals: true,
coverage: {
provider: 'v8',
include: [
'test?(s)/**',
'test?(-*).?(c|m)[jt]s?(x)',
'**/*{.,-}{test,spec,bench,benchmark}?(-d).?(c|m)[jt]s?(x)',
],
exclude: [
'dist/**',
'.husky/**',
'.vscode/**',
'.github/**',
'public/**',
'**/node_modules/**',
'**/*.astro',
'**/script.js',
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier,astro,commitlint}.config.*',
],
thresholds: {
branches: 80,
lines: 80,
functions: 80,
statements: 80
}
},
}
}
)