Skip to content

Commit e661de5

Browse files
author
Sylvenas
committed
feat: collectCoverage
1 parent d9c249f commit e661de5

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

jest.config.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
module.exports = {
2-
roots: ['<rootDir>/src'],
3-
testMatch: [
4-
'**/__tests__/**/*.+(ts|tsx|js)',
5-
'**/?(*.)+(spec|test).+(ts|tsx|js)',
6-
],
7-
transform: {
8-
'^.+\\.(ts|tsx)?$': 'ts-jest',
9-
'^.+\\.[t|j]sx?$': 'babel-jest',
10-
},
2+
roots: ["<rootDir>/src"],
3+
testMatch: [
4+
"**/__tests__/**/*.+(ts|tsx|js)",
5+
"**/?(*.)+(spec|test).+(ts|tsx|js)"
6+
],
7+
transform: {
8+
"^.+\\.(ts|tsx)?$": "ts-jest",
9+
"^.+\\.[t|j]sx?$": "babel-jest"
10+
},
11+
collectCoverage: true
1112
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "dist/index.js",
66
"typings": "dist/index.d.ts",
77
"scripts": {
8-
"test": "jest --coverage",
8+
"test": "jest",
99
"build": "npx babel src --out-dir dist --extensions '.ts,.tsx'"
1010
},
1111
"repository": {

0 commit comments

Comments
 (0)