-
Notifications
You must be signed in to change notification settings - Fork 4
/
jest.config.js
33 lines (32 loc) · 810 Bytes
/
jest.config.js
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
module.exports = {
moduleFileExtensions: ["ts", "js"],
testMatch: [
"<rootDir>/src/**/__tests__/**/*.ts",
"<rootDir>/src/*.spec.ts",
"<rootDir>/src/**/*.spec.ts"
],
testEnvironment: "node",
collectCoverageFrom: [
"<rootDir>/src/*.ts",
"<rootDir>/src/**/*.ts",
"!<rootDir>/src/RedisStorageAdapter.ts",
"!<rootDir>/src/constants.ts",
"!<rootDir>/src/errors.ts",
"!<rootDir>/src/index.ts",
"!<rootDir>/src/ConnectionStatus.ts",
"!<rootDir>/src/LockedKeyRetrieveStrategy.ts",
"!<rootDir>/src/adapters/TestStorageAdapter.ts",
],
transform: {
"^.+\\.ts$": "ts-jest",
},
coverageReporters: ["text", "text-summary"],
coverageThreshold: {
global: {
branches: 90,
functions: 90,
lines: 90,
statements: 90
}
},
};