Fix Jest setup
This commit is contained in:
parent
9d85359690
commit
eb51b9df26
|
@ -0,0 +1 @@
|
|||
module.exports = {};
|
|
@ -47,6 +47,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"babel-eslint": "^8.0.3",
|
||||
"babel-jest": "^23.4.2",
|
||||
"babel-loader": "^7.1.2",
|
||||
"css-loader": "0.26.1",
|
||||
"errorhandler": "^1.5.0",
|
||||
|
@ -70,6 +71,9 @@
|
|||
"node": "8"
|
||||
},
|
||||
"jest": {
|
||||
"moduleNameMapper": {
|
||||
"\\.css$": "<rootDir>/modules/__mocks__/styleMock.js"
|
||||
},
|
||||
"testPathIgnorePatterns": [
|
||||
"/node_modules/",
|
||||
"__tests__/utils"
|
||||
|
|
20
yarn.lock
20
yarn.lock
|
@ -613,6 +613,13 @@ babel-jest@^22.4.4:
|
|||
babel-plugin-istanbul "^4.1.5"
|
||||
babel-preset-jest "^22.4.4"
|
||||
|
||||
babel-jest@^23.4.2:
|
||||
version "23.4.2"
|
||||
resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-23.4.2.tgz#f276de67798a5d68f2d6e87ff518c2f6e1609877"
|
||||
dependencies:
|
||||
babel-plugin-istanbul "^4.1.6"
|
||||
babel-preset-jest "^23.2.0"
|
||||
|
||||
babel-loader@^7.1.2:
|
||||
version "7.1.2"
|
||||
resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-7.1.2.tgz#f6cbe122710f1aa2af4d881c6d5b54358ca24126"
|
||||
|
@ -633,7 +640,7 @@ babel-plugin-check-es2015-constants@^6.22.0:
|
|||
dependencies:
|
||||
babel-runtime "^6.22.0"
|
||||
|
||||
babel-plugin-istanbul@^4.1.5:
|
||||
babel-plugin-istanbul@^4.1.5, babel-plugin-istanbul@^4.1.6:
|
||||
version "4.1.6"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-4.1.6.tgz#36c59b2192efce81c5b378321b74175add1c9a45"
|
||||
dependencies:
|
||||
|
@ -646,6 +653,10 @@ babel-plugin-jest-hoist@^22.4.4:
|
|||
version "22.4.4"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-22.4.4.tgz#b9851906eab34c7bf6f8c895a2b08bea1a844c0b"
|
||||
|
||||
babel-plugin-jest-hoist@^23.2.0:
|
||||
version "23.2.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-23.2.0.tgz#e61fae05a1ca8801aadee57a6d66b8cefaf44167"
|
||||
|
||||
babel-plugin-syntax-async-functions@^6.8.0:
|
||||
version "6.13.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95"
|
||||
|
@ -1008,6 +1019,13 @@ babel-preset-jest@^22.4.4:
|
|||
babel-plugin-jest-hoist "^22.4.4"
|
||||
babel-plugin-syntax-object-rest-spread "^6.13.0"
|
||||
|
||||
babel-preset-jest@^23.2.0:
|
||||
version "23.2.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-23.2.0.tgz#8ec7a03a138f001a1a8fb1e8113652bf1a55da46"
|
||||
dependencies:
|
||||
babel-plugin-jest-hoist "^23.2.0"
|
||||
babel-plugin-syntax-object-rest-spread "^6.13.0"
|
||||
|
||||
babel-preset-react@^6.24.1:
|
||||
version "6.24.1"
|
||||
resolved "https://registry.yarnpkg.com/babel-preset-react/-/babel-preset-react-6.24.1.tgz#ba69dfaea45fc3ec639b6a4ecea6e17702c91380"
|
||||
|
|
Loading…
Reference in New Issue