Skip to content

Commit 6bed870

Browse files
committed
Collect coverage with Jest
1 parent 3de2810 commit 6bed870

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

Diff for: .prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
dist
22
CHANGELOG.md
3+
coverage

Diff for: __test_utils__/TestInput.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from 'react';
2+
23
import { withFormsy } from '../src';
34
import { PassDownProps } from '../src/Wrapper';
45

Diff for: package.json

+5
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
}
2222
},
2323
"jest": {
24+
"collectCoverage": true,
25+
"collectCoverageFrom": [
26+
"src/**/*.tsx",
27+
"src/**/*.ts"
28+
],
2429
"transform": {
2530
"^.+\\.(js|jsx|ts|tsx)$": "babel-jest"
2631
},

0 commit comments

Comments
 (0)