From 4f4513bd7dd31266ab4475c446af6aac2d039bc0 Mon Sep 17 00:00:00 2001 From: Francois K Date: Wed, 26 Feb 2020 18:11:44 +0100 Subject: [PATCH] fix: update anchor link to doc (#9616) * fix: update anchor link to doc * Update changelog --- CHANGELOG.md | 1 + .../__snapshots__/resolveNoFileExtensions.test.ts.snap | 2 +- .../__snapshots__/runtime_require_module_no_ext.test.js.snap | 2 +- packages/jest-runtime/src/helpers.ts | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) 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 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) {}