Skip to content

Commit 0a4f4a5

Browse files
committed
add dev dependencies for tests and test coverage via jest
Signed-off-by: Winner95 <Winner95@users.noreply.github.com>
1 parent 6ec2ddc commit 0a4f4a5

File tree

2 files changed

+2411
-2
lines changed

2 files changed

+2411
-2
lines changed

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"description": "a custom react function components props handler for react-docgen. It allows you to parse props, which are typed as React.functionComponent<props> without rewriting your code",
55
"main": "index.js",
66
"scripts": {
7-
"test": "yarn test"
7+
"test": "jest",
8+
"test:watch": "jest --watch",
9+
"test:coverage": "jest --coverage"
810
},
911
"repository": {
1012
"type": "git",
@@ -24,5 +26,9 @@
2426
"bugs": {
2527
"url": "https://github.com/Winner95/typescript-react-function-component-props-handler/issues"
2628
},
27-
"homepage": "https://github.com/Winner95/typescript-react-function-component-props-handler#readme"
29+
"homepage": "https://github.com/Winner95/typescript-react-function-component-props-handler#readme",
30+
"devDependencies": {
31+
"jest": "^30.2.0",
32+
"react-docgen": "5.3.0"
33+
}
2834
}

0 commit comments

Comments
 (0)