Skip to content

Commit 93b6e1c

Browse files
committed
chore: Test cov
1 parent 1287d4d commit 93b6e1c

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

jestconfig.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
{
2+
"preset": "ts-jest",
3+
"testEnvironment": "node",
4+
"moduleDirectories": ["node_modules", "src"],
5+
"moduleFileExtensions": ["ts", "js", "json"],
6+
"roots": ["<rootDir>"],
7+
"testMatch": ["<rootDir>/src/**/*.test.ts", "<rootDir>/test/**/*.test.ts"],
28
"collectCoverage": true,
39
"collectCoverageFrom": [
410
"src/**/*.ts",
@@ -7,10 +13,6 @@
713
"!**/node_modules/**",
814
"!**/*.test.ts"
915
],
10-
"preset": "ts-jest",
11-
"roots": ["<rootDir>/src", "<rootDir>/test"],
12-
"testRegex": ".*\\.test\\.ts$",
13-
"moduleDirectories": ["node_modules", "<rootDir>"],
1416
"coverageReporters": ["text", "lcov"],
1517
"coverageThreshold": {
1618
"global": {

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
"strict": true,
1111
"types": ["jest", "node"]
1212
},
13-
"include": ["src/**/*", "index.ts", "src/inputVerifier.test.ts", "src/service.test.ts"],
14-
"exclude": ["src/**/*.test.ts", "src/**/*.spec.ts", "test/**/*"]
13+
"include": ["src/**/*", "index.ts"],
14+
"exclude": ["src/**/*.test.ts", "test/**/*"]
1515
}

0 commit comments

Comments
 (0)