Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(jest): pattern when detecting packages to transpile in next/jest #43546

Merged
merged 2 commits into from Dec 2, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/next/build/jest/jest.ts
Expand Up @@ -157,7 +157,7 @@ export default function nextJest(options: { dir?: string } = {}) {
// To match Next.js behavior node_modules is not transformed, only `transpiledPackages`
...(transpiled
? [
`/node_modules/(?!(${transpiled}))/`,
`/node_modules/(?!(${transpiled})/)`,
balazsorban44 marked this conversation as resolved.
Show resolved Hide resolved
`/node_modules/.pnpm/(?!(${transpiled.replace(
/\//g,
'\\+'
Expand Down