Skip to content

Commit 81f3f28

Browse files
Louis KuczykowskiLouis Kuczykowski
Louis Kuczykowski
authored and
Louis Kuczykowski
committed
fixed the bug with jest config file
1 parent 8d0f686 commit 81f3f28

File tree

8 files changed

+515
-13
lines changed

8 files changed

+515
-13
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
/package-lock.json
33
/.vscode-test/
44
/build/
5-
/.DS_Store
5+
/.DS_Store
6+
/coverage/

babel.config.js

-6
This file was deleted.

jest.config.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,12 @@ module.exports = {
1313
vscode: path.join(__dirname, 'src', 'test', 'vscode.js')
1414
},
1515
testMatch: ['**/test/**/*.js', '**/?(*.)+(spec|test).js'],
16-
modulePathIgnorePatterns: ["node_modules"]
16+
modulePathIgnorePatterns: ["node_modules"],
17+
collectCoverage: true,
18+
coverageReporters: [ 'lcov', 'text', 'html'],
19+
collectCoverageFrom: ['./src/**'],
20+
coverageDirectory: 'coverage',
21+
transform: {
22+
"^.+\\.[jt]sx?$": "babel-jest"
23+
},
1724
};

0 commit comments

Comments
 (0)