diff --git a/.babelrc b/.babelrc index 8631d8f..adfa943 100644 --- a/.babelrc +++ b/.babelrc @@ -2,5 +2,10 @@ "presets": [ ["@babel/preset-env"], ["@babel/preset-react"] - ] + ], + "env": { + "test": { + "plugins": ["@babel/plugin-transform-runtime"] + } + } } diff --git a/package.json b/package.json index 3db91cf..68488d1 100644 --- a/package.json +++ b/package.json @@ -52,14 +52,16 @@ }, "devDependencies": { "@babel/core": "^7.2.2", + "@babel/plugin-transform-runtime": "^7.2.0", "@babel/preset-env": "^7.3.1", "@babel/preset-react": "^7.0.0", + "@babel/runtime": "^7.3.1", "@semantic-release/changelog": "^3.0.1", "@semantic-release/git": "^7.0.5", "@types/react": "^16.0.40", "babel-core": "^7.0.0-bridge.0", "coveralls": "^3.0.0", - "jest": "^23.6.0", + "jest": "^24.1.0", "npm-run-all": "^4.1.2", "react": "^16.2.0", "react-dom": "^16.2.0",