Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
"description": "Middleware and helpers to improve the React-Redux flow when communicating with APIs.",
"main": "index.js",
"scripts": {
"coveralls": "jest --coverage && cat ./coverage/lcov.info | coveralls",
"coveralls": "npm run test && cat ./coverage/lcov.info | coveralls",
"lint": "eslint lib/** __tests__/**",
"test": "jest",
"test": "jest --coverage",
"jest": "jest",
"test_debug": "node --inspect node_modules/.bin/jest"
},
"repository": {
Expand Down Expand Up @@ -37,6 +38,7 @@
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-import": "^2.18.0",
"eslint-plugin-prettier": "^3.1.0",
"husky": "^3.0.1",
"jest": "^24.8.0",
"jest-fetch-mock": "^2.1.2",
"prettier": "^1.18.2"
Expand All @@ -45,6 +47,20 @@
"automock": false,
"setupFiles": [
"<rootDir>/setupJest.js"
]
],
"coverageThreshold": {
"global": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
}
}
},
"husky": {
"hooks": {
"pre-commit": "npm run lint && npm run test",
"pre-push": "npm run lint && npm run test"
}
}
}