From fc0b512d4b0e644daa4b4d8b009abc76a071b1b7 Mon Sep 17 00:00:00 2001 From: hainenber Date: Fri, 31 Oct 2025 23:04:40 +0700 Subject: [PATCH] docs: remove `create-react-app` reference for greenfield React app testing Signed-off-by: hainenber --- CHANGELOG.md | 1 + website/versioned_docs/version-29.7/TutorialReact.md | 12 +----------- website/versioned_docs/version-30.0/TutorialReact.md | 12 +----------- 3 files changed, 3 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c12bd0ed0e2c..bae694bad1cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ ### Chore & Maintenance - `[docs]` Update V30 migration guide to notify users on `jest.mock()` work with case-sensitive path ([#15849](https://github.com/jestjs/jest/pull/15849)) +- `[docs]` Remove `create-react-app` reference for greenfield React app testing ([#15883](https://github.com/jestjs/jest/pull/15883)) - `[deps]` Update to sinon/fake-timers v15 ## 30.2.0 diff --git a/website/versioned_docs/version-29.7/TutorialReact.md b/website/versioned_docs/version-29.7/TutorialReact.md index fd6f7620acce..e3d9f92e76ba 100644 --- a/website/versioned_docs/version-29.7/TutorialReact.md +++ b/website/versioned_docs/version-29.7/TutorialReact.md @@ -7,17 +7,7 @@ At Facebook, we use Jest to test [React](https://reactjs.org/) applications. ## Setup -### Setup with Create React App - -If you are new to React, we recommend using [Create React App](https://create-react-app.dev/). It is ready to use and [ships with Jest](https://create-react-app.dev/docs/running-tests/#docsNav)! You will only need to add `react-test-renderer` for rendering snapshots. - -Run - -```bash npm2yarn -npm install --save-dev react-test-renderer -``` - -### Setup without Create React App +### Setup for React app If you have an existing application you'll need to install a few packages to make everything work well together. We are using the `babel-jest` package and the `react` babel preset to transform our code inside of the test environment. Also see [using babel](GettingStarted.md#using-babel). diff --git a/website/versioned_docs/version-30.0/TutorialReact.md b/website/versioned_docs/version-30.0/TutorialReact.md index fd6f7620acce..e3d9f92e76ba 100644 --- a/website/versioned_docs/version-30.0/TutorialReact.md +++ b/website/versioned_docs/version-30.0/TutorialReact.md @@ -7,17 +7,7 @@ At Facebook, we use Jest to test [React](https://reactjs.org/) applications. ## Setup -### Setup with Create React App - -If you are new to React, we recommend using [Create React App](https://create-react-app.dev/). It is ready to use and [ships with Jest](https://create-react-app.dev/docs/running-tests/#docsNav)! You will only need to add `react-test-renderer` for rendering snapshots. - -Run - -```bash npm2yarn -npm install --save-dev react-test-renderer -``` - -### Setup without Create React App +### Setup for React app If you have an existing application you'll need to install a few packages to make everything work well together. We are using the `babel-jest` package and the `react` babel preset to transform our code inside of the test environment. Also see [using babel](GettingStarted.md#using-babel).