From ca552298c332a262604c6243103a4e2d89827b0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20KERISIT?= Date: Wed, 26 Feb 2020 16:56:07 +0100 Subject: [PATCH 1/2] fix: update anchor link to doc --- .../__snapshots__/resolveNoFileExtensions.test.ts.snap | 2 +- .../__snapshots__/runtime_require_module_no_ext.test.js.snap | 2 +- packages/jest-runtime/src/helpers.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e/__tests__/__snapshots__/resolveNoFileExtensions.test.ts.snap b/e2e/__tests__/__snapshots__/resolveNoFileExtensions.test.ts.snap index 6daf83e4f1e2..45ac2b1ca98d 100644 --- a/e2e/__tests__/__snapshots__/resolveNoFileExtensions.test.ts.snap +++ b/e2e/__tests__/__snapshots__/resolveNoFileExtensions.test.ts.snap @@ -24,7 +24,7 @@ FAIL __tests__/test.js You might want to include a file extension in your import, or update your 'moduleFileExtensions', which is currently ['js']. - See https://jestjs.io/docs/en/configuration#modulefileextensions-array-string + See https://jestjs.io/docs/en/configuration#modulefileextensions-arraystring 6 | */ 7 | diff --git a/packages/jest-runtime/src/__tests__/__snapshots__/runtime_require_module_no_ext.test.js.snap b/packages/jest-runtime/src/__tests__/__snapshots__/runtime_require_module_no_ext.test.js.snap index d9a3386a84ea..ae7b862935a6 100644 --- a/packages/jest-runtime/src/__tests__/__snapshots__/runtime_require_module_no_ext.test.js.snap +++ b/packages/jest-runtime/src/__tests__/__snapshots__/runtime_require_module_no_ext.test.js.snap @@ -8,5 +8,5 @@ However, Jest was able to find: You might want to include a file extension in your import, or update your 'moduleFileExtensions', which is currently ['js', 'json', 'jsx', 'ts', 'tsx', 'node']. -See https://jestjs.io/docs/en/configuration#modulefileextensions-array-string" +See https://jestjs.io/docs/en/configuration#modulefileextensions-arraystring" `; diff --git a/packages/jest-runtime/src/helpers.ts b/packages/jest-runtime/src/helpers.ts index 0d64699b1df1..885d508e2e20 100644 --- a/packages/jest-runtime/src/helpers.ts +++ b/packages/jest-runtime/src/helpers.ts @@ -45,7 +45,7 @@ export const findSiblingsWithFileExtension = ( return ( foundMessage + "\n\nYou might want to include a file extension in your import, or update your 'moduleFileExtensions', which is currently " + - `[${mappedModuleFileExtensions}].\n\nSee https://jestjs.io/docs/en/configuration#modulefileextensions-array-string` + `[${mappedModuleFileExtensions}].\n\nSee https://jestjs.io/docs/en/configuration#modulefileextensions-arraystring` ); } } catch (ignored) {} From 02e2750ad08220c97ac613d4ca6dfbf13e6bb47e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20KERISIT?= Date: Wed, 26 Feb 2020 17:08:21 +0100 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e4b8e071e97e..9c440252bfc5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -38,6 +38,7 @@ - `[jest-runtime]` Move execution of `setupFiles` to `jest-runner` ([#9596](https://github.com/facebook/jest/pull/9596)) - `[@jest/reporters]` Remove unused dependencies and type exports ([#9462](https://github.com/facebook/jest/pull/9462)) - `[website]` Update pictures of reports when matchers fail ([#9214](https://github.com/facebook/jest/pull/9214)) +- `[jest-runtime]` Update anchor link in `helpers` ([#9616](https://github.com/facebook/jest/pull/9616)) ### Performance