-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathvitest.config.mjs
33 lines (32 loc) · 947 Bytes
/
vitest.config.mjs
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
/// <reference types="vitest" />
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
include: ["**/*.{test,spec}.?(c|m)[jt]s?(x)"],
exclude: [
"node_modules/**",
"dist/**",
"lib/**",
"**/.{idea,git,cache,output,temp,github,.vscode,.devcontainer}/**",
"**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*",
],
clearMocks: true,
passWithNoTests: true,
globals: true,
watch: false,
coverage: {
provider: "v8",
reporter: ["text"],
exclude: [
"src/executable/markdown.ts", // this is not used
"**/index.ts",
"**/*.js",
"node_modules/**",
"dist/**",
"lib/**",
"**/.{idea,git,cache,output,temp,github,.vscode,.devcontainer}/**",
"**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*",
],
},
},
});