From 092403dcc9537e6690a79aa91d44af55eb1d738b Mon Sep 17 00:00:00 2001 From: Yuta Tezuka Date: Thu, 24 Oct 2024 22:13:47 +0900 Subject: [PATCH 1/7] fix: correct a broken link about AngularJS in docs Original link (from Internet Archive) : https://web.archive.org/web/20200808062318/https://engineering.talentpair.com/running-angularjs-tests-with-jest-49d0cc9c6d26/ Updated link: https://benjaminbrandt.com/running-angularjs-tests-with-jest/ --- docs/TestingFrameworks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/TestingFrameworks.md b/docs/TestingFrameworks.md index f85556e56410..9f806fbd5ce6 100644 --- a/docs/TestingFrameworks.md +++ b/docs/TestingFrameworks.md @@ -17,7 +17,7 @@ Jest is a universal testing platform, with the ability to adapt to any JavaScrip ## AngularJS - [Testing an AngularJS app with Jest](https://medium.com/aya-experience/testing-an-angularjs-app-with-jest-3029a613251) by Matthieu Lux ([@Swiip](https://twitter.com/Swiip)) -- [Running AngularJS Tests with Jest](https://engineering.talentpair.com/running-angularjs-tests-with-jest-49d0cc9c6d26) by Ben Brandt ([@benjaminbrandt](https://twitter.com/benjaminbrandt)) +- [Running AngularJS Tests with Jest](https://benjaminbrandt.com/running-angularjs-tests-with-jest/) by Ben Brandt ([@benjaminbrandt](https://twitter.com/benjaminbrandt)) - [AngularJS Unit Tests with Jest Actions (Traditional Chinese)](https://dwatow.github.io/2019/08-14-angularjs/angular-jest/?fbclid=IwAR2SrqYg_o6uvCQ79FdNPeOxs86dUqB6pPKgd9BgnHt1kuIDRyRM-ch11xg) by Chris Wang ([@dwatow](https://github.com/dwatow)) ## Angular From 73f78e4b7236c03b192493592f9eb9c879f9c997 Mon Sep 17 00:00:00 2001 From: Yuta Tezuka Date: Thu, 24 Oct 2024 23:07:39 +0900 Subject: [PATCH 2/7] fix: correct a broken link about React Native --- docs/MoreResources.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/MoreResources.md b/docs/MoreResources.md index a53696153a7b..9c3145d8456a 100644 --- a/docs/MoreResources.md +++ b/docs/MoreResources.md @@ -15,7 +15,7 @@ By now you should have a good idea of how Jest can help you test your applicatio ## Learn by example -You will find a number of example test cases in the [`examples`](https://github.com/jestjs/jest/tree/main/examples) folder on GitHub. You can also learn from the excellent tests used by the [React](https://github.com/facebook/react/tree/main/packages/react/src/__tests__), [Relay](https://github.com/facebook/relay/tree/main/packages/react-relay/__tests__), and [React Native](https://github.com/facebook/react-native/tree/main/Libraries/Animated/__tests__) projects. +You will find a number of example test cases in the [`examples`](https://github.com/jestjs/jest/tree/main/examples) folder on GitHub. You can also learn from the excellent tests used by the [React](https://github.com/facebook/react/tree/main/packages/react/src/__tests__), [Relay](https://github.com/facebook/relay/tree/main/packages/react-relay/__tests__), and [React Native](https://github.com/facebook/react-native/tree/main/packages/react-native/Libraries/Animated/__tests__) projects. ## Join the community From 63c731b8eff55d33d2f4874930b02a108a725ea4 Mon Sep 17 00:00:00 2001 From: Yuta Tezuka Date: Thu, 24 Oct 2024 23:14:16 +0900 Subject: [PATCH 3/7] fix: correct a broken link about GatsbyJS in docs --- docs/TestingFrameworks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/TestingFrameworks.md b/docs/TestingFrameworks.md index 9f806fbd5ce6..93c5c35abb26 100644 --- a/docs/TestingFrameworks.md +++ b/docs/TestingFrameworks.md @@ -34,7 +34,7 @@ Jest is a universal testing platform, with the ability to adapt to any JavaScrip ## GatsbyJS -- [Unit Testing](https://www.gatsbyjs.org/docs/unit-testing/) by GatsbyJS docs +- [Unit Testing](https://www.gatsbyjs.com/docs/how-to/testing/unit-testing/) by GatsbyJS docs ## Hapi.js From 4c185feb2c678bf77a28a86b8f9dd1ded5975db7 Mon Sep 17 00:00:00 2001 From: Yuta Tezuka Date: Thu, 24 Oct 2024 23:44:23 +0900 Subject: [PATCH 4/7] revert & fix: correct a broken link about Express MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The example for Express.js was removed in the following pull request due to a broken link: https://github.com/jestjs/jest/pull/15270 Although the domain is different, I found what appears to be the same blog based on the author’s name and title. Therefore, I reverted the Express.js section and corrected the link. --- docs/TestingFrameworks.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/TestingFrameworks.md b/docs/TestingFrameworks.md index 93c5c35abb26..a0f734bd6d6d 100644 --- a/docs/TestingFrameworks.md +++ b/docs/TestingFrameworks.md @@ -32,6 +32,10 @@ Jest is a universal testing platform, with the ability to adapt to any JavaScrip - [Writing Tests](https://redux.js.org/recipes/writing-tests) by Redux docs +## Express.js + +- [How to test Express.js with Jest and Supertest](https://www.albertgao.com/2017/05/24/how-to-test-expressjs-with-jest-and-supertest/) by Albert Gao ([@albertgao](https://twitter.com/albertgao)) + ## GatsbyJS - [Unit Testing](https://www.gatsbyjs.com/docs/how-to/testing/unit-testing/) by GatsbyJS docs From 38d8fe0ddcb58b7aca3200f1c69c9e12d6a057e6 Mon Sep 17 00:00:00 2001 From: Yuta Tezuka Date: Fri, 25 Oct 2024 00:36:24 +0900 Subject: [PATCH 5/7] chore: apply the changes to the versioned_docs --- website/versioned_docs/version-29.4/MoreResources.md | 2 +- website/versioned_docs/version-29.4/TestingFrameworks.md | 8 ++++++-- website/versioned_docs/version-29.5/MoreResources.md | 2 +- website/versioned_docs/version-29.5/TestingFrameworks.md | 8 ++++++-- website/versioned_docs/version-29.6/MoreResources.md | 2 +- website/versioned_docs/version-29.6/TestingFrameworks.md | 8 ++++++-- website/versioned_docs/version-29.7/MoreResources.md | 2 +- website/versioned_docs/version-29.7/TestingFrameworks.md | 8 ++++++-- 8 files changed, 28 insertions(+), 12 deletions(-) diff --git a/website/versioned_docs/version-29.4/MoreResources.md b/website/versioned_docs/version-29.4/MoreResources.md index a53696153a7b..9c3145d8456a 100644 --- a/website/versioned_docs/version-29.4/MoreResources.md +++ b/website/versioned_docs/version-29.4/MoreResources.md @@ -15,7 +15,7 @@ By now you should have a good idea of how Jest can help you test your applicatio ## Learn by example -You will find a number of example test cases in the [`examples`](https://github.com/jestjs/jest/tree/main/examples) folder on GitHub. You can also learn from the excellent tests used by the [React](https://github.com/facebook/react/tree/main/packages/react/src/__tests__), [Relay](https://github.com/facebook/relay/tree/main/packages/react-relay/__tests__), and [React Native](https://github.com/facebook/react-native/tree/main/Libraries/Animated/__tests__) projects. +You will find a number of example test cases in the [`examples`](https://github.com/jestjs/jest/tree/main/examples) folder on GitHub. You can also learn from the excellent tests used by the [React](https://github.com/facebook/react/tree/main/packages/react/src/__tests__), [Relay](https://github.com/facebook/relay/tree/main/packages/react-relay/__tests__), and [React Native](https://github.com/facebook/react-native/tree/main/packages/react-native/Libraries/Animated/__tests__) projects. ## Join the community diff --git a/website/versioned_docs/version-29.4/TestingFrameworks.md b/website/versioned_docs/version-29.4/TestingFrameworks.md index f85556e56410..a0f734bd6d6d 100644 --- a/website/versioned_docs/version-29.4/TestingFrameworks.md +++ b/website/versioned_docs/version-29.4/TestingFrameworks.md @@ -17,7 +17,7 @@ Jest is a universal testing platform, with the ability to adapt to any JavaScrip ## AngularJS - [Testing an AngularJS app with Jest](https://medium.com/aya-experience/testing-an-angularjs-app-with-jest-3029a613251) by Matthieu Lux ([@Swiip](https://twitter.com/Swiip)) -- [Running AngularJS Tests with Jest](https://engineering.talentpair.com/running-angularjs-tests-with-jest-49d0cc9c6d26) by Ben Brandt ([@benjaminbrandt](https://twitter.com/benjaminbrandt)) +- [Running AngularJS Tests with Jest](https://benjaminbrandt.com/running-angularjs-tests-with-jest/) by Ben Brandt ([@benjaminbrandt](https://twitter.com/benjaminbrandt)) - [AngularJS Unit Tests with Jest Actions (Traditional Chinese)](https://dwatow.github.io/2019/08-14-angularjs/angular-jest/?fbclid=IwAR2SrqYg_o6uvCQ79FdNPeOxs86dUqB6pPKgd9BgnHt1kuIDRyRM-ch11xg) by Chris Wang ([@dwatow](https://github.com/dwatow)) ## Angular @@ -32,9 +32,13 @@ Jest is a universal testing platform, with the ability to adapt to any JavaScrip - [Writing Tests](https://redux.js.org/recipes/writing-tests) by Redux docs +## Express.js + +- [How to test Express.js with Jest and Supertest](https://www.albertgao.com/2017/05/24/how-to-test-expressjs-with-jest-and-supertest/) by Albert Gao ([@albertgao](https://twitter.com/albertgao)) + ## GatsbyJS -- [Unit Testing](https://www.gatsbyjs.org/docs/unit-testing/) by GatsbyJS docs +- [Unit Testing](https://www.gatsbyjs.com/docs/how-to/testing/unit-testing/) by GatsbyJS docs ## Hapi.js diff --git a/website/versioned_docs/version-29.5/MoreResources.md b/website/versioned_docs/version-29.5/MoreResources.md index a53696153a7b..9c3145d8456a 100644 --- a/website/versioned_docs/version-29.5/MoreResources.md +++ b/website/versioned_docs/version-29.5/MoreResources.md @@ -15,7 +15,7 @@ By now you should have a good idea of how Jest can help you test your applicatio ## Learn by example -You will find a number of example test cases in the [`examples`](https://github.com/jestjs/jest/tree/main/examples) folder on GitHub. You can also learn from the excellent tests used by the [React](https://github.com/facebook/react/tree/main/packages/react/src/__tests__), [Relay](https://github.com/facebook/relay/tree/main/packages/react-relay/__tests__), and [React Native](https://github.com/facebook/react-native/tree/main/Libraries/Animated/__tests__) projects. +You will find a number of example test cases in the [`examples`](https://github.com/jestjs/jest/tree/main/examples) folder on GitHub. You can also learn from the excellent tests used by the [React](https://github.com/facebook/react/tree/main/packages/react/src/__tests__), [Relay](https://github.com/facebook/relay/tree/main/packages/react-relay/__tests__), and [React Native](https://github.com/facebook/react-native/tree/main/packages/react-native/Libraries/Animated/__tests__) projects. ## Join the community diff --git a/website/versioned_docs/version-29.5/TestingFrameworks.md b/website/versioned_docs/version-29.5/TestingFrameworks.md index f85556e56410..a0f734bd6d6d 100644 --- a/website/versioned_docs/version-29.5/TestingFrameworks.md +++ b/website/versioned_docs/version-29.5/TestingFrameworks.md @@ -17,7 +17,7 @@ Jest is a universal testing platform, with the ability to adapt to any JavaScrip ## AngularJS - [Testing an AngularJS app with Jest](https://medium.com/aya-experience/testing-an-angularjs-app-with-jest-3029a613251) by Matthieu Lux ([@Swiip](https://twitter.com/Swiip)) -- [Running AngularJS Tests with Jest](https://engineering.talentpair.com/running-angularjs-tests-with-jest-49d0cc9c6d26) by Ben Brandt ([@benjaminbrandt](https://twitter.com/benjaminbrandt)) +- [Running AngularJS Tests with Jest](https://benjaminbrandt.com/running-angularjs-tests-with-jest/) by Ben Brandt ([@benjaminbrandt](https://twitter.com/benjaminbrandt)) - [AngularJS Unit Tests with Jest Actions (Traditional Chinese)](https://dwatow.github.io/2019/08-14-angularjs/angular-jest/?fbclid=IwAR2SrqYg_o6uvCQ79FdNPeOxs86dUqB6pPKgd9BgnHt1kuIDRyRM-ch11xg) by Chris Wang ([@dwatow](https://github.com/dwatow)) ## Angular @@ -32,9 +32,13 @@ Jest is a universal testing platform, with the ability to adapt to any JavaScrip - [Writing Tests](https://redux.js.org/recipes/writing-tests) by Redux docs +## Express.js + +- [How to test Express.js with Jest and Supertest](https://www.albertgao.com/2017/05/24/how-to-test-expressjs-with-jest-and-supertest/) by Albert Gao ([@albertgao](https://twitter.com/albertgao)) + ## GatsbyJS -- [Unit Testing](https://www.gatsbyjs.org/docs/unit-testing/) by GatsbyJS docs +- [Unit Testing](https://www.gatsbyjs.com/docs/how-to/testing/unit-testing/) by GatsbyJS docs ## Hapi.js diff --git a/website/versioned_docs/version-29.6/MoreResources.md b/website/versioned_docs/version-29.6/MoreResources.md index a53696153a7b..9c3145d8456a 100644 --- a/website/versioned_docs/version-29.6/MoreResources.md +++ b/website/versioned_docs/version-29.6/MoreResources.md @@ -15,7 +15,7 @@ By now you should have a good idea of how Jest can help you test your applicatio ## Learn by example -You will find a number of example test cases in the [`examples`](https://github.com/jestjs/jest/tree/main/examples) folder on GitHub. You can also learn from the excellent tests used by the [React](https://github.com/facebook/react/tree/main/packages/react/src/__tests__), [Relay](https://github.com/facebook/relay/tree/main/packages/react-relay/__tests__), and [React Native](https://github.com/facebook/react-native/tree/main/Libraries/Animated/__tests__) projects. +You will find a number of example test cases in the [`examples`](https://github.com/jestjs/jest/tree/main/examples) folder on GitHub. You can also learn from the excellent tests used by the [React](https://github.com/facebook/react/tree/main/packages/react/src/__tests__), [Relay](https://github.com/facebook/relay/tree/main/packages/react-relay/__tests__), and [React Native](https://github.com/facebook/react-native/tree/main/packages/react-native/Libraries/Animated/__tests__) projects. ## Join the community diff --git a/website/versioned_docs/version-29.6/TestingFrameworks.md b/website/versioned_docs/version-29.6/TestingFrameworks.md index f85556e56410..a0f734bd6d6d 100644 --- a/website/versioned_docs/version-29.6/TestingFrameworks.md +++ b/website/versioned_docs/version-29.6/TestingFrameworks.md @@ -17,7 +17,7 @@ Jest is a universal testing platform, with the ability to adapt to any JavaScrip ## AngularJS - [Testing an AngularJS app with Jest](https://medium.com/aya-experience/testing-an-angularjs-app-with-jest-3029a613251) by Matthieu Lux ([@Swiip](https://twitter.com/Swiip)) -- [Running AngularJS Tests with Jest](https://engineering.talentpair.com/running-angularjs-tests-with-jest-49d0cc9c6d26) by Ben Brandt ([@benjaminbrandt](https://twitter.com/benjaminbrandt)) +- [Running AngularJS Tests with Jest](https://benjaminbrandt.com/running-angularjs-tests-with-jest/) by Ben Brandt ([@benjaminbrandt](https://twitter.com/benjaminbrandt)) - [AngularJS Unit Tests with Jest Actions (Traditional Chinese)](https://dwatow.github.io/2019/08-14-angularjs/angular-jest/?fbclid=IwAR2SrqYg_o6uvCQ79FdNPeOxs86dUqB6pPKgd9BgnHt1kuIDRyRM-ch11xg) by Chris Wang ([@dwatow](https://github.com/dwatow)) ## Angular @@ -32,9 +32,13 @@ Jest is a universal testing platform, with the ability to adapt to any JavaScrip - [Writing Tests](https://redux.js.org/recipes/writing-tests) by Redux docs +## Express.js + +- [How to test Express.js with Jest and Supertest](https://www.albertgao.com/2017/05/24/how-to-test-expressjs-with-jest-and-supertest/) by Albert Gao ([@albertgao](https://twitter.com/albertgao)) + ## GatsbyJS -- [Unit Testing](https://www.gatsbyjs.org/docs/unit-testing/) by GatsbyJS docs +- [Unit Testing](https://www.gatsbyjs.com/docs/how-to/testing/unit-testing/) by GatsbyJS docs ## Hapi.js diff --git a/website/versioned_docs/version-29.7/MoreResources.md b/website/versioned_docs/version-29.7/MoreResources.md index a53696153a7b..9c3145d8456a 100644 --- a/website/versioned_docs/version-29.7/MoreResources.md +++ b/website/versioned_docs/version-29.7/MoreResources.md @@ -15,7 +15,7 @@ By now you should have a good idea of how Jest can help you test your applicatio ## Learn by example -You will find a number of example test cases in the [`examples`](https://github.com/jestjs/jest/tree/main/examples) folder on GitHub. You can also learn from the excellent tests used by the [React](https://github.com/facebook/react/tree/main/packages/react/src/__tests__), [Relay](https://github.com/facebook/relay/tree/main/packages/react-relay/__tests__), and [React Native](https://github.com/facebook/react-native/tree/main/Libraries/Animated/__tests__) projects. +You will find a number of example test cases in the [`examples`](https://github.com/jestjs/jest/tree/main/examples) folder on GitHub. You can also learn from the excellent tests used by the [React](https://github.com/facebook/react/tree/main/packages/react/src/__tests__), [Relay](https://github.com/facebook/relay/tree/main/packages/react-relay/__tests__), and [React Native](https://github.com/facebook/react-native/tree/main/packages/react-native/Libraries/Animated/__tests__) projects. ## Join the community diff --git a/website/versioned_docs/version-29.7/TestingFrameworks.md b/website/versioned_docs/version-29.7/TestingFrameworks.md index f85556e56410..a0f734bd6d6d 100644 --- a/website/versioned_docs/version-29.7/TestingFrameworks.md +++ b/website/versioned_docs/version-29.7/TestingFrameworks.md @@ -17,7 +17,7 @@ Jest is a universal testing platform, with the ability to adapt to any JavaScrip ## AngularJS - [Testing an AngularJS app with Jest](https://medium.com/aya-experience/testing-an-angularjs-app-with-jest-3029a613251) by Matthieu Lux ([@Swiip](https://twitter.com/Swiip)) -- [Running AngularJS Tests with Jest](https://engineering.talentpair.com/running-angularjs-tests-with-jest-49d0cc9c6d26) by Ben Brandt ([@benjaminbrandt](https://twitter.com/benjaminbrandt)) +- [Running AngularJS Tests with Jest](https://benjaminbrandt.com/running-angularjs-tests-with-jest/) by Ben Brandt ([@benjaminbrandt](https://twitter.com/benjaminbrandt)) - [AngularJS Unit Tests with Jest Actions (Traditional Chinese)](https://dwatow.github.io/2019/08-14-angularjs/angular-jest/?fbclid=IwAR2SrqYg_o6uvCQ79FdNPeOxs86dUqB6pPKgd9BgnHt1kuIDRyRM-ch11xg) by Chris Wang ([@dwatow](https://github.com/dwatow)) ## Angular @@ -32,9 +32,13 @@ Jest is a universal testing platform, with the ability to adapt to any JavaScrip - [Writing Tests](https://redux.js.org/recipes/writing-tests) by Redux docs +## Express.js + +- [How to test Express.js with Jest and Supertest](https://www.albertgao.com/2017/05/24/how-to-test-expressjs-with-jest-and-supertest/) by Albert Gao ([@albertgao](https://twitter.com/albertgao)) + ## GatsbyJS -- [Unit Testing](https://www.gatsbyjs.org/docs/unit-testing/) by GatsbyJS docs +- [Unit Testing](https://www.gatsbyjs.com/docs/how-to/testing/unit-testing/) by GatsbyJS docs ## Hapi.js From 6e2b5473a5d141a5c8b6cdfc2f5d211110253793 Mon Sep 17 00:00:00 2001 From: Yuta Tezuka Date: Fri, 25 Oct 2024 00:55:43 +0900 Subject: [PATCH 6/7] Update CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 363abee8a97e..93a5e5ec36ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -120,6 +120,7 @@ - `[docs]` Link NestJS documentation on testing with Jest ([#14940](https://github.com/jestjs/jest/pull/14940)) - `[docs]` `Revised documentation for .toHaveBeenCalled()` to accurately depict its functionality. ([#14853](https://github.com/jestjs/jest/pull/14853)) - `[docs]` Removed ExpressJS reference link from documentation due to dead link ([#15270](https://github.com/jestjs/jest/pull/15270)) +- `[docs]` Correct broken links in docs ([#15358](https://github.com/jestjs/jest/pull/15358)) ## 29.7.0 From 7220ddb29990fbccf50553e2ef2c267f71a9b998 Mon Sep 17 00:00:00 2001 From: Yuta Tezuka Date: Fri, 25 Oct 2024 01:57:03 +0900 Subject: [PATCH 7/7] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 93a5e5ec36ae..3b7807103adc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -120,7 +120,7 @@ - `[docs]` Link NestJS documentation on testing with Jest ([#14940](https://github.com/jestjs/jest/pull/14940)) - `[docs]` `Revised documentation for .toHaveBeenCalled()` to accurately depict its functionality. ([#14853](https://github.com/jestjs/jest/pull/14853)) - `[docs]` Removed ExpressJS reference link from documentation due to dead link ([#15270](https://github.com/jestjs/jest/pull/15270)) -- `[docs]` Correct broken links in docs ([#15358](https://github.com/jestjs/jest/pull/15358)) +- `[docs]` Correct broken links in docs ([#15359](https://github.com/jestjs/jest/pull/15359)) ## 29.7.0