Testing - Setup @testing-library/react-hooks

This commit is contained in:
2019-12-31 18:00:54 +05:30
parent 05e8c385e4
commit 97d9ae5e96
3 changed files with 52 additions and 9 deletions
+6 -4
View File
@@ -14,8 +14,8 @@
},
"scripts": {
"format": "prettier --write \"{src,example}/**/*.{ts,js}*\"",
"test": "cross-env CI=1 react-scripts test --env=jsdom",
"test:watch": "react-scripts test --env=jsdom",
"test": "cross-env CI=1 react-scripts test",
"test:watch": "react-scripts test",
"build": "rollup -c",
"start": "rollup -c -w",
"prepare": "yarn run build",
@@ -24,18 +24,20 @@
},
"dependencies": {},
"peerDependencies": {
"react": "^16.8.6"
"react": "^16.9.0"
},
"devDependencies": {
"@babel/core": "^7.2.2",
"@babel/runtime": "^7.3.1",
"@testing-library/react-hooks": "^3.2.1",
"@types/jest": "^23.3.13",
"@types/react": "^16.7.22",
"cross-env": "^5.2.0",
"gh-pages": "^2.0.1",
"prettier": "^1.19.1",
"react": "^16.8.6",
"react": "^16.9.0",
"react-scripts": "^3.0.1",
"react-test-renderer": "^16.9.0",
"rollup": "^1.1.2",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-commonjs": "^9.2.0",