Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## master

### Fixes
* `[babel-jest]` Fix support for namespaced babel version 7
([#4918](https://github.com/facebook/jest/pull/4918))
* `[expect]` fix .toThrow for promises
([#4884](https://github.com/facebook/jest/pull/4884))
* `[jest-docblock]` pragmas should preserve urls
Expand Down
8 changes: 7 additions & 1 deletion docs/GettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,15 @@ To use [Babel](http://babeljs.io/), install the `babel-jest` and
`regenerator-runtime` packages:

```
npm install --save-dev babel-jest regenerator-runtime
npm install --save-dev babel-jest babel-core regenerator-runtime
```

> Note: If you are using a babel version 7 then you need to install `babel-jest`
> with the following command:
> ```
> npm install --save-dev babel-jest babel-core@^7.0.0-0 @babel/core regenerator-runtime
> ```

_Note: Explicitly installing `regenerator-runtime` is not needed if you use
`npm` 3 or 4 or Yarn_

Expand Down
7 changes: 6 additions & 1 deletion packages/babel-jest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@ If you are already using `jest-cli`, just add `babel-jest` and it will
automatically compile JavaScript code using babel.

```
npm install --save-dev babel-jest
npm install --save-dev babel-jest babel-core
```

> Note: If you are using babel version 7 you have to install `babel-jest` with
> ```
> npm install --save-dev babel-jest babel-core@^7.0.0-0 @babel/core
> ```

If you would like to write your own preprocessor, uninstall and delete
babel-jest and set the
[config.transform](http://facebook.github.io/jest/docs/configuration.html#transform-object-string-string)
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"babel-core": "^6.0.0"
},
"peerDependencies": {
"babel-core": "^6.0.0 || ^7.0.0-alpha || ^7.0.0-beta || ^7.0.0"
"babel-core": "^6.0.0 || ^7.0.0-0"
}
}