Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit d790196

Browse files
committed
chore: include coverage only from src directory
1 parent 31ccba7 commit d790196

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

jest.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ module.exports = {
66
transform: {
77
'^.+\\.ts$': 'ts-jest',
88
},
9+
collectCoverageFrom: ['<rootDir>/src/.*\\.ts'],
10+
coveragePathIgnorePatterns: ['.*\\.spec\\.ts'],
911
globals: {
1012
'ts-jest': {
1113
packageJson: '<rootDir>/package.json',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"prettier": "^2.0.5",
3434
"rollup": "^2.7.2",
3535
"ts-jest": "^26.0.0",
36-
"typescript": "^3.7.5"
36+
"typescript": "^3.9.3"
3737
},
3838
"husky": {
3939
"hooks": {

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"include": ["src", "types"],
3+
"exclude": ["**/*.spec.ts"],
34
"compilerOptions": {
45
"target": "esnext",
56
"module": "commonjs",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4207,10 +4207,10 @@ typedarray-to-buffer@^3.1.5:
42074207
dependencies:
42084208
is-typedarray "^1.0.0"
42094209

4210-
typescript@^3.7.5:
4211-
version "3.7.5"
4212-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.5.tgz#0692e21f65fd4108b9330238aac11dd2e177a1ae"
4213-
integrity sha512-/P5lkRXkWHNAbcJIiHPfRoKqyd7bsyCma1hZNUGfn20qm64T6ZBlrzprymeu918H+mB/0rIg2gGK/BXkhhYgBw==
4210+
typescript@^3.9.3:
4211+
version "3.9.3"
4212+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.3.tgz#d3ac8883a97c26139e42df5e93eeece33d610b8a"
4213+
integrity sha512-D/wqnB2xzNFIcoBG9FG8cXRDjiqSTbG2wd8DMZeQyJlP1vfTkIxH4GKveWaEBYySKIg+USu+E+EDIR47SqnaMQ==
42144214

42154215
unicode-canonical-property-names-ecmascript@^1.0.4:
42164216
version "1.0.4"

0 commit comments

Comments
 (0)