Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
`;
2 changes: 1 addition & 1 deletion packages/jest-runtime/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}
Expand Down