Skip to content

Commit

Permalink
Add abbel-plugin for object spread syntax to babel-preset-jest (jestj…
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored and tabrindle committed Oct 2, 2017
1 parent ec6cd50 commit ee5f998
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/babel-preset-jest/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ module.exports = {
plugins: [
// Cannot be `import` as this file is not compiled
require('babel-plugin-jest-hoist'),
require('babel-plugin-syntax-object-rest-spread'),
],
};
3 changes: 2 additions & 1 deletion packages/babel-preset-jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"license": "BSD-3-Clause",
"main": "index.js",
"dependencies": {
"babel-plugin-jest-hoist": "^21.0.2"
"babel-plugin-jest-hoist": "^21.0.2",
"babel-plugin-syntax-object-rest-spread": "^6.13.0"
}
}
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ babel-plugin-syntax-jsx@^6.3.13, babel-plugin-syntax-jsx@^6.5.0, babel-plugin-sy
version "6.18.0"
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946"

babel-plugin-syntax-object-rest-spread@^6.8.0:
babel-plugin-syntax-object-rest-spread@^6.13.0, babel-plugin-syntax-object-rest-spread@^6.8.0:
version "6.13.0"
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5"

Expand Down

0 comments on commit ee5f998

Please sign in to comment.