Skip to content

Commit f1cf87b

Browse files
[docs] Update Troubleshooting.md (#12185)
1 parent 38a3906 commit f1cf87b

File tree

7 files changed

+7
-35
lines changed

7 files changed

+7
-35
lines changed

docs/Troubleshooting.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,7 @@ More information on Node debugging can be found [here](https://nodejs.org/api/de
124124

125125
## Debugging in WebStorm
126126

127-
The easiest way to debug Jest tests in [WebStorm](https://www.jetbrains.com/webstorm/) is using `Jest run/debug configuration`. It will launch tests and automatically attach debugger.
128-
129-
In the WebStorm menu `Run` select `Edit Configurations...`. Then click `+` and select `Jest`. Optionally specify the Jest configuration file, additional options, and environment variables. Save the configuration, put the breakpoints in the code, then click the green debug icon to start debugging.
130-
131-
If you are using Facebook's [`create-react-app`](https://github.com/facebookincubator/create-react-app), in the Jest run/debug configuration specify the path to the `react-scripts` package in the Jest package field and add `--env=jsdom` to the Jest options field.
127+
[WebStorm](https://www.jetbrains.com/webstorm/) has built-in support for Jest. Read [Testing With Jest in WebStorm](https://blog.jetbrains.com/webstorm/2018/10/testing-with-jest-in-webstorm/) to learn more.
132128

133129
## Caching Issues
134130

website/versioned_docs/version-25.x/Troubleshooting.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,7 @@ More information on Node debugging can be found [here](https://nodejs.org/api/de
124124

125125
## Debugging in WebStorm
126126

127-
The easiest way to debug Jest tests in [WebStorm](https://www.jetbrains.com/webstorm/) is using `Jest run/debug configuration`. It will launch tests and automatically attach debugger.
128-
129-
In the WebStorm menu `Run` select `Edit Configurations...`. Then click `+` and select `Jest`. Optionally specify the Jest configuration file, additional options, and environment variables. Save the configuration, put the breakpoints in the code, then click the green debug icon to start debugging.
130-
131-
If you are using Facebook's [`create-react-app`](https://github.com/facebookincubator/create-react-app), in the Jest run/debug configuration specify the path to the `react-scripts` package in the Jest package field and add `--env=jsdom` to the Jest options field.
127+
[WebStorm](https://www.jetbrains.com/webstorm/) has built-in support for Jest. Read [Testing With Jest in WebStorm](https://blog.jetbrains.com/webstorm/2018/10/testing-with-jest-in-webstorm/) to learn more.
132128

133129
## Caching Issues
134130

website/versioned_docs/version-26.x/Troubleshooting.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,7 @@ More information on Node debugging can be found [here](https://nodejs.org/api/de
124124

125125
## Debugging in WebStorm
126126

127-
The easiest way to debug Jest tests in [WebStorm](https://www.jetbrains.com/webstorm/) is using `Jest run/debug configuration`. It will launch tests and automatically attach debugger.
128-
129-
In the WebStorm menu `Run` select `Edit Configurations...`. Then click `+` and select `Jest`. Optionally specify the Jest configuration file, additional options, and environment variables. Save the configuration, put the breakpoints in the code, then click the green debug icon to start debugging.
130-
131-
If you are using Facebook's [`create-react-app`](https://github.com/facebookincubator/create-react-app), in the Jest run/debug configuration specify the path to the `react-scripts` package in the Jest package field and add `--env=jsdom` to the Jest options field.
127+
[WebStorm](https://www.jetbrains.com/webstorm/) has built-in support for Jest. Read [Testing With Jest in WebStorm](https://blog.jetbrains.com/webstorm/2018/10/testing-with-jest-in-webstorm/) to learn more.
132128

133129
## Caching Issues
134130

website/versioned_docs/version-27.0/Troubleshooting.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,7 @@ More information on Node debugging can be found [here](https://nodejs.org/api/de
124124

125125
## Debugging in WebStorm
126126

127-
The easiest way to debug Jest tests in [WebStorm](https://www.jetbrains.com/webstorm/) is using `Jest run/debug configuration`. It will launch tests and automatically attach debugger.
128-
129-
In the WebStorm menu `Run` select `Edit Configurations...`. Then click `+` and select `Jest`. Optionally specify the Jest configuration file, additional options, and environment variables. Save the configuration, put the breakpoints in the code, then click the green debug icon to start debugging.
130-
131-
If you are using Facebook's [`create-react-app`](https://github.com/facebookincubator/create-react-app), in the Jest run/debug configuration specify the path to the `react-scripts` package in the Jest package field and add `--env=jsdom` to the Jest options field.
127+
[WebStorm](https://www.jetbrains.com/webstorm/) has built-in support for Jest. Read [Testing With Jest in WebStorm](https://blog.jetbrains.com/webstorm/2018/10/testing-with-jest-in-webstorm/) to learn more.
132128

133129
## Caching Issues
134130

website/versioned_docs/version-27.1/Troubleshooting.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,7 @@ More information on Node debugging can be found [here](https://nodejs.org/api/de
124124

125125
## Debugging in WebStorm
126126

127-
The easiest way to debug Jest tests in [WebStorm](https://www.jetbrains.com/webstorm/) is using `Jest run/debug configuration`. It will launch tests and automatically attach debugger.
128-
129-
In the WebStorm menu `Run` select `Edit Configurations...`. Then click `+` and select `Jest`. Optionally specify the Jest configuration file, additional options, and environment variables. Save the configuration, put the breakpoints in the code, then click the green debug icon to start debugging.
130-
131-
If you are using Facebook's [`create-react-app`](https://github.com/facebookincubator/create-react-app), in the Jest run/debug configuration specify the path to the `react-scripts` package in the Jest package field and add `--env=jsdom` to the Jest options field.
127+
[WebStorm](https://www.jetbrains.com/webstorm/) has built-in support for Jest. Read [Testing With Jest in WebStorm](https://blog.jetbrains.com/webstorm/2018/10/testing-with-jest-in-webstorm/) to learn more.
132128

133129
## Caching Issues
134130

website/versioned_docs/version-27.2/Troubleshooting.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,7 @@ More information on Node debugging can be found [here](https://nodejs.org/api/de
124124

125125
## Debugging in WebStorm
126126

127-
The easiest way to debug Jest tests in [WebStorm](https://www.jetbrains.com/webstorm/) is using `Jest run/debug configuration`. It will launch tests and automatically attach debugger.
128-
129-
In the WebStorm menu `Run` select `Edit Configurations...`. Then click `+` and select `Jest`. Optionally specify the Jest configuration file, additional options, and environment variables. Save the configuration, put the breakpoints in the code, then click the green debug icon to start debugging.
130-
131-
If you are using Facebook's [`create-react-app`](https://github.com/facebookincubator/create-react-app), in the Jest run/debug configuration specify the path to the `react-scripts` package in the Jest package field and add `--env=jsdom` to the Jest options field.
127+
[WebStorm](https://www.jetbrains.com/webstorm/) has built-in support for Jest. Read [Testing With Jest in WebStorm](https://blog.jetbrains.com/webstorm/2018/10/testing-with-jest-in-webstorm/) to learn more.
132128

133129
## Caching Issues
134130

website/versioned_docs/version-27.4/Troubleshooting.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,7 @@ More information on Node debugging can be found [here](https://nodejs.org/api/de
124124

125125
## Debugging in WebStorm
126126

127-
The easiest way to debug Jest tests in [WebStorm](https://www.jetbrains.com/webstorm/) is using `Jest run/debug configuration`. It will launch tests and automatically attach debugger.
128-
129-
In the WebStorm menu `Run` select `Edit Configurations...`. Then click `+` and select `Jest`. Optionally specify the Jest configuration file, additional options, and environment variables. Save the configuration, put the breakpoints in the code, then click the green debug icon to start debugging.
130-
131-
If you are using Facebook's [`create-react-app`](https://github.com/facebookincubator/create-react-app), in the Jest run/debug configuration specify the path to the `react-scripts` package in the Jest package field and add `--env=jsdom` to the Jest options field.
127+
[WebStorm](https://www.jetbrains.com/webstorm/) has built-in support for Jest. Read [Testing With Jest in WebStorm](https://blog.jetbrains.com/webstorm/2018/10/testing-with-jest-in-webstorm/) to learn more.
132128

133129
## Caching Issues
134130

0 commit comments

Comments
 (0)