From fa3abcddc5537ee5fb4deacfc2dec79be5d3252c Mon Sep 17 00:00:00 2001 From: Satana Charuwichitratana Date: Sat, 15 Dec 2018 23:08:44 +0700 Subject: [PATCH] Move jest configuration out from package.json --- jest.config.js | 11 +++++++++++ package.json | 11 ----------- 2 files changed, 11 insertions(+), 11 deletions(-) create mode 100644 jest.config.js 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",