-
Notifications
You must be signed in to change notification settings - Fork 675
Expand file tree
/
Copy pathvitest.config.ts
More file actions
52 lines (50 loc) · 1.38 KB
/
Copy pathvitest.config.ts
File metadata and controls
52 lines (50 loc) · 1.38 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
import path from "node:path";
import { defineConfig } from "vitest/config";
export default defineConfig({
resolve: {
alias: {
"@chart-kit/core": path.resolve(__dirname, "packages/core/src/index.ts"),
"@chart-kit/svg-renderer": path.resolve(
__dirname,
"packages/svg-renderer/src/index.ts"
)
}
},
test: {
coverage: {
provider: "v8",
reporter: ["text", "json-summary"],
include: [
"packages/core/src/**/*.ts",
"packages/react-native/src/**/*.ts",
"packages/svg-renderer/src/**/*.{ts,tsx}"
],
exclude: [
"**/index.ts",
"**/types.ts",
"packages/react-native/src/**/*.tsx",
"packages/react-native/src/**/use*.ts",
"packages/react-native/src/charts/line/responders.ts",
"packages/react-native/src/viewport/pan.ts",
"packages/react-native/src/viewport/panResponder.ts",
"packages/react-native/src/charts/*/*Animation.ts",
"packages/react-native/src/charts/progress/animation.ts"
],
thresholds: {
statements: 90,
branches: 80,
functions: 95,
lines: 90
}
},
environment: "node",
include: [
"apps/**/*.test.ts",
"packages/**/test/**/*.test.ts",
"scripts/**/*.test.mjs",
"src/**/*.test.ts",
"test/**/*.test.ts"
],
passWithNoTests: false
}
});