Skip to content

Commit 8b1be33

Browse files
quisidoSimenB
authored andcommitted
Fix for Babel7 bridge package name in documentation. (#6745)
resolves #6720
1 parent 5cb0df5 commit 8b1be33

File tree

9 files changed

+22
-18
lines changed

9 files changed

+22
-18
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
- `[jest-haste-map]` [**BREAKING**] Replaced internal data structures to improve performance ([#6960](https://github.com/facebook/jest/pull/6960))
66

7+
### Chore & Maintenance
8+
9+
- `[docs]` Fix babel-core installation instructions ([#6745](https://github.com/facebook/jest/pull/6745))
10+
711
## 23.6.0
812

913
### Features

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ If you'd like to learn more about running `jest` through the command line, take
101101

102102
[Babel](http://babeljs.io/) is automatically handled by Jest using `babel-jest`. You don't need install anything extra for using Babel.
103103

104-
> Note: If you are using a babel version 7 then you need to install `babel-core@^7.0.0-0` and `@babel/core` with the following command:
104+
> Note: If you are using Babel version 7 then you need to install `babel-jest`, `babel-core@^7.0.0-bridge.0` and `@babel/core` with the following command:
105105
>
106106
> ```bash
107-
> yarn add --dev 'babel-core@^7.0.0-0' @babel/core
107+
> yarn add --dev babel-jest babel-core@^7.0.0-bridge.0 @babel/core regenerator-runtime
108108
> ```
109109
110110
Don't forget to add a [`.babelrc`](https://babeljs.io/docs/usage/babelrc/) file in your project's root folder. For example, if you are using ES6 and [React.js](https://reactjs.org) with the [`babel-preset-env`](https://babeljs.io/docs/plugins/preset-env/) and [`babel-preset-react`](https://babeljs.io/docs/plugins/preset-react/) presets:

docs/GettingStarted.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ To use [Babel](http://babeljs.io/), install the `babel-jest` and `regenerator-ru
8585
yarn add --dev babel-jest babel-core regenerator-runtime
8686
```
8787

88-
> Note: If you are using a babel version 7 then you need to install `babel-jest` with the following command:
88+
> Note: If you are using Babel version 7 then you need to install `babel-jest`, `babel-core@^7.0.0-bridge.0` and `@babel/core` with the following command:
8989
>
9090
> ```bash
91-
> yarn add --dev babel-jest 'babel-core@^7.0.0-0' @babel/core regenerator-runtime
91+
> yarn add --dev babel-jest babel-core@^7.0.0-bridge.0 @babel/core regenerator-runtime
9292
> ```
9393
9494
_Note: Explicitly installing `regenerator-runtime` is not needed if you use `npm` 3 or 4 or Yarn_

website/versioned_docs/version-22.0/GettingStarted.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ To use [Babel](http://babeljs.io/), install the `babel-jest` and `regenerator-ru
7878
npm install --save-dev babel-jest babel-core regenerator-runtime
7979
```
8080

81-
> Note: If you are using a babel version 7 then you need to install `babel-jest` with the following command:
81+
> Note: If you are using Babel version 7 then you need to install `babel-jest`, `babel-core@^7.0.0-bridge.0` and `@babel/core` with the following command:
8282
>
83-
> ```
84-
> npm install --save-dev babel-jest 'babel-core@^7.0.0-0' @babel/core regenerator-runtime
83+
> ```bash
84+
> npm install --save-dev babel-jest babel-core@^7.0.0-bridge.0 @babel/core regenerator-runtime
8585
> ```
8686
8787
_Note: Explicitly installing `regenerator-runtime` is not needed if you use `npm` 3 or 4 or Yarn_

website/versioned_docs/version-22.1/GettingStarted.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ To use [Babel](http://babeljs.io/), install the `babel-jest` and `regenerator-ru
7878
npm install --save-dev babel-jest babel-core regenerator-runtime
7979
```
8080

81-
> Note: If you are using a babel version 7 then you need to install `babel-jest` with the following command:
81+
> Note: If you are using Babel version 7 then you need to install `babel-jest`, `babel-core@^7.0.0-bridge.0` and `@babel/core` with the following command:
8282
>
83-
> ```
84-
> npm install --save-dev babel-jest 'babel-core@^7.0.0-0' @babel/core regenerator-runtime
83+
> ```bash
84+
> npm install --save-dev babel-jest babel-core@^7.0.0-bridge.0 @babel/core regenerator-runtime
8585
> ```
8686
8787
_Note: Explicitly installing `regenerator-runtime` is not needed if you use `npm` 3 or 4 or Yarn_

website/versioned_docs/version-22.2/GettingStarted.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ To use [Babel](http://babeljs.io/), install the `babel-jest` and `regenerator-ru
7878
npm install --save-dev babel-jest babel-core regenerator-runtime
7979
```
8080

81-
> Note: If you are using a babel version 7 then you need to install `babel-jest` with the following command:
81+
> Note: If you are using Babel version 7 then you need to install `babel-jest`, `babel-core@^7.0.0-bridge.0` and `@babel/core` with the following command:
8282
>
8383
> ```bash
84-
> npm install --save-dev babel-jest 'babel-core@^7.0.0-0' @babel/core regenerator-runtime
84+
> npm install --save-dev babel-jest babel-core@^7.0.0-bridge.0 @babel/core regenerator-runtime
8585
> ```
8686
8787
_Note: Explicitly installing `regenerator-runtime` is not needed if you use `npm` 3 or 4 or Yarn_

website/versioned_docs/version-22.3/GettingStarted.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ To use [Babel](http://babeljs.io/), install the `babel-jest` and `regenerator-ru
7878
npm install --save-dev babel-jest babel-core regenerator-runtime
7979
```
8080

81-
> Note: If you are using a babel version 7 then you need to install `babel-jest` with the following command:
81+
> Note: If you are using Babel version 7 then you need to install `babel-jest`, `babel-core@^7.0.0-bridge.0` and `@babel/core` with the following command:
8282
>
8383
> ```bash
84-
> npm install --save-dev babel-jest 'babel-core@^7.0.0-0' @babel/core regenerator-runtime
84+
> npm install --save-dev babel-jest babel-core@^7.0.0-bridge.0 @babel/core regenerator-runtime
8585
> ```
8686
8787
_Note: Explicitly installing `regenerator-runtime` is not needed if you use `npm` 3 or 4 or Yarn_

website/versioned_docs/version-22.4/GettingStarted.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ To use [Babel](http://babeljs.io/), install the `babel-jest` and `regenerator-ru
7878
yarn add --dev babel-jest babel-core regenerator-runtime
7979
```
8080

81-
> Note: If you are using a babel version 7 then you need to install `babel-jest` with the following command:
81+
> Note: If you are using Babel version 7 then you need to install `babel-jest`, `babel-core@^7.0.0-bridge.0` and `@babel/core` with the following command:
8282
>
8383
> ```bash
84-
> yarn add --dev babel-jest 'babel-core@^7.0.0-0' @babel/core regenerator-runtime
84+
> yarn add --dev babel-jest babel-core@^7.0.0-bridge.0 @babel/core regenerator-runtime
8585
> ```
8686
8787
_Note: Explicitly installing `regenerator-runtime` is not needed if you use `npm` 3 or 4 or Yarn_

website/versioned_docs/version-23.2/GettingStarted.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ To use [Babel](http://babeljs.io/), install the `babel-jest` and `regenerator-ru
8686
yarn add --dev babel-jest babel-core regenerator-runtime
8787
```
8888

89-
> Note: If you are using a babel version 7 then you need to install `babel-jest` with the following command:
89+
> Note: If you are using Babel version 7 then you need to install `babel-jest`, `babel-core@^7.0.0-bridge.0` and `@babel/core` with the following command:
9090
>
9191
> ```bash
92-
> yarn add --dev babel-jest 'babel-core@^7.0.0-0' @babel/core regenerator-runtime
92+
> yarn add --dev babel-jest babel-core@^7.0.0-bridge.0 @babel/core regenerator-runtime
9393
> ```
9494
9595
_Note: Explicitly installing `regenerator-runtime` is not needed if you use `npm` 3 or 4 or Yarn_

0 commit comments

Comments
 (0)