Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
d54719ae
Unverified
Commit
d54719ae
authored
Feb 26, 2026
by
Sebastian "Sebbie" Silbermann
Committed by
GitHub
Feb 26, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[test] Fix jest-haste-map warnings (#82995)
Co-authored-by:
Hendrik Liebau
<
mail@hendrik-liebau.de
>
parent
5c24c444
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
jest.config.js
jest.config.js
+21
-1
No files found.
jest.config.js
View file @
d54719ae
...
...
@@ -19,7 +19,27 @@ const customJestConfig = {
'<rootDir>/../packages/font/src/'
,
'<rootDir>/../packages/next-routing/'
,
],
modulePathIgnorePatterns
:
[
'/
\\
.next/'
],
haste
:
{
// Throwing to avoid warnings creeping up over time polluting log output.
throwOnModuleCollision
:
true
,
},
modulePathIgnorePatterns
:
[
'/
\\
.next/'
,
// Prevents jest-haste-map warnings due to multiple versions of the same
// package being vendored. Also means tests in `compiled` will be ignored.
// Jest does not normalize/resolve paths in modulePathIgnorePatterns so we can't
// prefix with <rootDir>/../ like we do in roots.
'packages/next/src/compiled/'
,
'<rootDir>/development/app-dir/ssr-in-rsc/internal-pkg/'
,
'<rootDir>/e2e/app-dir/self-importing-package/internal-pkg'
,
'<rootDir>/e2e/app-dir/self-importing-package-monorepo/internal-pkg'
,
'<rootDir>/e2e/app-dir/server-source-maps/fixtures/default/internal-pkg'
,
'<rootDir>/e2e/transpile-packages-typescript-foreign/pkg'
,
'<rootDir>/production/standalone-mode/tracing-side-effects-false/foo'
,
'<rootDir>/production/standalone-mode/tracing-static-files/foo'
,
'<rootDir>/production/standalone-mode/tracing-unparsable/foo'
,
'<rootDir>/production/supports-module-resolution-nodenext/pkg'
,
],
modulePaths
:
[
'<rootDir>/lib'
],
transformIgnorePatterns
:
[
'/next[/
\\\\
]dist/'
,
'/
\\
.next/'
],
moduleNameMapper
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment