diff --git a/jest.config.js b/jest.config.js new file mode 100644 index 0000000..43059aa --- /dev/null +++ b/jest.config.js @@ -0,0 +1,11 @@ +module.exports = { + collectCoverage: true, + collectCoverageFrom: [ + 'lib/**/*.{js,jsx}', + '!**/node_modules/**' + ], + coverageDirectory: 'coverage', + roots: [ + 'test' + ] +}; diff --git a/package.json b/package.json index cad8f1a..c91efff 100644 --- a/package.json +++ b/package.json @@ -59,17 +59,6 @@ "mkdirp": "^0.5.1", "rimraf": "^2.6.2" }, - "jest": { - "collectCoverage": true, - "collectCoverageFrom": [ - "lib/**/*.{js,jsx}", - "!**/node_modules/**" - ], - "coverageDirectory": "coverage", - "roots": [ - "test" - ] - }, "husky": { "hooks": { "pre-commit": "npm run lint && npm test",