forked from alleyway/add-tradingview-alerts-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.cjs
35 lines (35 loc) · 1000 Bytes
/
jest.config.cjs
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
// jest.config.js
module.exports = {
rootDir: "./",
globals: {
__DEV__: true,
__PROD__: false
},
testEnvironment: "node",
testTimeout: 30000,
preset: "ts-jest",
verbose: true, // report individual test
bail: false, // enable to stop test when an error occur,
detectOpenHandles: false,
moduleDirectories: ["node_modules", "src", "test"],
testMatch: ["**/src/**/*.test.ts?(x)"],
testPathIgnorePatterns: ["node_modules/", "dist/", ".json", "create-tradingview-alerts-home"],
coverageReporters: ["html", "text", "text-summary", "cobertura"],
collectCoverageFrom: [
"src/**/*.ts",
"!**/node_modules/**",
"!src/cli.ts"
],
setupFiles: ["dotenv/config"],
transform: {},
extensionsToTreatAsEsm: [".ts"],
coverageThreshold: {
// coverage strategy
global: {
branches: 20,
functions: 20,
lines: 21,
statements: 22
}
}
}