From f1cf87b80c384b04568c3a8a64236fa0dbe8a328 Mon Sep 17 00:00:00 2001 From: Vlad Sholokhov Date: Sat, 5 Feb 2022 11:03:41 +0300 Subject: [PATCH] [docs] Update Troubleshooting.md (#12185) --- docs/Troubleshooting.md | 6 +----- website/versioned_docs/version-25.x/Troubleshooting.md | 6 +----- website/versioned_docs/version-26.x/Troubleshooting.md | 6 +----- website/versioned_docs/version-27.0/Troubleshooting.md | 6 +----- website/versioned_docs/version-27.1/Troubleshooting.md | 6 +----- website/versioned_docs/version-27.2/Troubleshooting.md | 6 +----- website/versioned_docs/version-27.4/Troubleshooting.md | 6 +----- 7 files changed, 7 insertions(+), 35 deletions(-) diff --git a/docs/Troubleshooting.md b/docs/Troubleshooting.md index 52ca0f3358e4..28cea902472d 100644 --- a/docs/Troubleshooting.md +++ b/docs/Troubleshooting.md @@ -124,11 +124,7 @@ More information on Node debugging can be found [here](https://nodejs.org/api/de ## Debugging in WebStorm -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. - -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. - -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. +[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. ## Caching Issues diff --git a/website/versioned_docs/version-25.x/Troubleshooting.md b/website/versioned_docs/version-25.x/Troubleshooting.md index 52ca0f3358e4..28cea902472d 100644 --- a/website/versioned_docs/version-25.x/Troubleshooting.md +++ b/website/versioned_docs/version-25.x/Troubleshooting.md @@ -124,11 +124,7 @@ More information on Node debugging can be found [here](https://nodejs.org/api/de ## Debugging in WebStorm -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. - -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. - -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. +[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. ## Caching Issues diff --git a/website/versioned_docs/version-26.x/Troubleshooting.md b/website/versioned_docs/version-26.x/Troubleshooting.md index 52ca0f3358e4..28cea902472d 100644 --- a/website/versioned_docs/version-26.x/Troubleshooting.md +++ b/website/versioned_docs/version-26.x/Troubleshooting.md @@ -124,11 +124,7 @@ More information on Node debugging can be found [here](https://nodejs.org/api/de ## Debugging in WebStorm -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. - -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. - -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. +[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. ## Caching Issues diff --git a/website/versioned_docs/version-27.0/Troubleshooting.md b/website/versioned_docs/version-27.0/Troubleshooting.md index 52ca0f3358e4..28cea902472d 100644 --- a/website/versioned_docs/version-27.0/Troubleshooting.md +++ b/website/versioned_docs/version-27.0/Troubleshooting.md @@ -124,11 +124,7 @@ More information on Node debugging can be found [here](https://nodejs.org/api/de ## Debugging in WebStorm -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. - -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. - -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. +[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. ## Caching Issues diff --git a/website/versioned_docs/version-27.1/Troubleshooting.md b/website/versioned_docs/version-27.1/Troubleshooting.md index 52ca0f3358e4..28cea902472d 100644 --- a/website/versioned_docs/version-27.1/Troubleshooting.md +++ b/website/versioned_docs/version-27.1/Troubleshooting.md @@ -124,11 +124,7 @@ More information on Node debugging can be found [here](https://nodejs.org/api/de ## Debugging in WebStorm -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. - -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. - -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. +[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. ## Caching Issues diff --git a/website/versioned_docs/version-27.2/Troubleshooting.md b/website/versioned_docs/version-27.2/Troubleshooting.md index 52ca0f3358e4..28cea902472d 100644 --- a/website/versioned_docs/version-27.2/Troubleshooting.md +++ b/website/versioned_docs/version-27.2/Troubleshooting.md @@ -124,11 +124,7 @@ More information on Node debugging can be found [here](https://nodejs.org/api/de ## Debugging in WebStorm -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. - -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. - -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. +[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. ## Caching Issues diff --git a/website/versioned_docs/version-27.4/Troubleshooting.md b/website/versioned_docs/version-27.4/Troubleshooting.md index 52ca0f3358e4..28cea902472d 100644 --- a/website/versioned_docs/version-27.4/Troubleshooting.md +++ b/website/versioned_docs/version-27.4/Troubleshooting.md @@ -124,11 +124,7 @@ More information on Node debugging can be found [here](https://nodejs.org/api/de ## Debugging in WebStorm -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. - -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. - -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. +[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. ## Caching Issues