Skip to content

chore: bump unrs-resolver to 1.12.1, remove jest-pnp-resolver and unnecessary checks - #15721

Merged
SimenB merged 3 commits into
jestjs:mainfrom
JounQin:chore/bump_unrs-resolver
May 19, 2026
Merged

SimenB merged 3 commits into
jestjs:mainfrom
JounQin:chore/bump_unrs-resolver

Conversation

@JounQin

@JounQin JounQin commented Jul 6, 2025

Copy link
Copy Markdown
Collaborator

Summary

Remove jest-pnp-resolver

Test plan

@netlify

netlify Bot commented Jul 6, 2025 •

Copy link
Copy Markdown

✅ Deploy Preview for jestjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit de1f930
🔍 Latest deploy log https://app.netlify.com/projects/jestjs/deploys/686ab58e89104a0008317520
😎 Deploy Preview https://deploy-preview-15721--jestjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@pkg-pr-new

pkg-pr-new Bot commented Jul 6, 2025 •

Copy link
Copy Markdown

Open in StackBlitz

babel-jest

npm i https://pkg.pr.new/babel-jest@15721

babel-plugin-jest-hoist

npm i https://pkg.pr.new/babel-plugin-jest-hoist@15721

babel-preset-jest

npm i https://pkg.pr.new/babel-preset-jest@15721

create-jest

npm i https://pkg.pr.new/create-jest@15721

@jest/diff-sequences

npm i https://pkg.pr.new/@jest/diff-sequences@15721

expect

npm i https://pkg.pr.new/expect@15721

@jest/expect-utils

npm i https://pkg.pr.new/@jest/expect-utils@15721

jest

npm i https://pkg.pr.new/jest@15721

jest-changed-files

npm i https://pkg.pr.new/jest-changed-files@15721

jest-circus

npm i https://pkg.pr.new/jest-circus@15721

jest-cli

npm i https://pkg.pr.new/jest-cli@15721

jest-config

npm i https://pkg.pr.new/jest-config@15721

@jest/console

npm i https://pkg.pr.new/@jest/console@15721

@jest/core

npm i https://pkg.pr.new/@jest/core@15721

@jest/create-cache-key-function

npm i https://pkg.pr.new/@jest/create-cache-key-function@15721

jest-diff

npm i https://pkg.pr.new/jest-diff@15721

jest-docblock

npm i https://pkg.pr.new/jest-docblock@15721

jest-each

npm i https://pkg.pr.new/jest-each@15721

@jest/environment

npm i https://pkg.pr.new/@jest/environment@15721

jest-environment-jsdom

npm i https://pkg.pr.new/jest-environment-jsdom@15721

@jest/environment-jsdom-abstract

npm i https://pkg.pr.new/@jest/environment-jsdom-abstract@15721

jest-environment-node

npm i https://pkg.pr.new/jest-environment-node@15721

@jest/expect

npm i https://pkg.pr.new/@jest/expect@15721

@jest/fake-timers

npm i https://pkg.pr.new/@jest/fake-timers@15721

@jest/get-type

npm i https://pkg.pr.new/@jest/get-type@15721

@jest/globals

npm i https://pkg.pr.new/@jest/globals@15721

jest-haste-map

npm i https://pkg.pr.new/jest-haste-map@15721

jest-jasmine2

npm i https://pkg.pr.new/jest-jasmine2@15721

jest-leak-detector

npm i https://pkg.pr.new/jest-leak-detector@15721

jest-matcher-utils

npm i https://pkg.pr.new/jest-matcher-utils@15721

jest-message-util

npm i https://pkg.pr.new/jest-message-util@15721

jest-mock

npm i https://pkg.pr.new/jest-mock@15721

@jest/pattern

npm i https://pkg.pr.new/@jest/pattern@15721

jest-phabricator

npm i https://pkg.pr.new/jest-phabricator@15721

jest-regex-util

npm i https://pkg.pr.new/jest-regex-util@15721

@jest/reporters

npm i https://pkg.pr.new/@jest/reporters@15721

jest-resolve

npm i https://pkg.pr.new/jest-resolve@15721

jest-resolve-dependencies

npm i https://pkg.pr.new/jest-resolve-dependencies@15721

jest-runner

npm i https://pkg.pr.new/jest-runner@15721

jest-runtime

npm i https://pkg.pr.new/jest-runtime@15721

@jest/schemas

npm i https://pkg.pr.new/@jest/schemas@15721

jest-snapshot

npm i https://pkg.pr.new/jest-snapshot@15721

@jest/snapshot-utils

npm i https://pkg.pr.new/@jest/snapshot-utils@15721

@jest/source-map

npm i https://pkg.pr.new/@jest/source-map@15721

@jest/test-result

npm i https://pkg.pr.new/@jest/test-result@15721

@jest/test-sequencer

npm i https://pkg.pr.new/@jest/test-sequencer@15721

@jest/transform

npm i https://pkg.pr.new/@jest/transform@15721

@jest/types

npm i https://pkg.pr.new/@jest/types@15721

jest-util

npm i https://pkg.pr.new/jest-util@15721

jest-validate

npm i https://pkg.pr.new/jest-validate@15721

jest-watcher

npm i https://pkg.pr.new/jest-watcher@15721

jest-worker

npm i https://pkg.pr.new/jest-worker@15721

pretty-format

npm i https://pkg.pr.new/pretty-format@15721

commit: 9537d56

@JounQin
JounQin marked this pull request as draft July 6, 2025 17:18
@JounQin
JounQin force-pushed the chore/bump_unrs-resolver branch from b1d5c47 to 8359d08 Compare July 6, 2025 17:26
Comment thread .yarnrc.yml

enableGlobalCache: true

enableTelemetry: false

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It slows every yarn related command.

@JounQin JounQin changed the title chore: bump unrs-resolver to 1.11.0, remove unnecessary checks chore: bump unrs-resolver to 1.11.0, remove jest-pnp-resolver and unnecessary checks Jul 6, 2025
@JounQin
JounQin marked this pull request as ready for review July 6, 2025 17:42
@JounQin
JounQin requested review from SimenB, Copilot and cpojer July 6, 2025 17:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes the legacy PnP resolver, bumps unrs-resolver to v1.11.0, and cleans up associated code and configurations.

  • Remove jest-pnp-resolver import, PnP branch, and file:// URL handling in defaultResolver.ts
  • Bump dependency unrs-resolver to ^1.11.0 and drop jest-pnp-resolver in package.json
  • Update e2e test expectations, snapshots, changelog, and disable telemetry in .yarnrc.yml

Reviewed Changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/jest-resolve/src/defaultResolver.ts Dropped PnP and file URL handling, updated builtins comment
packages/jest-resolve/package.json Removed jest-pnp-resolver, bumped unrs-resolver to 1.11.0
e2e/pnp/tests/undeclared-dependency.test.js Changed thrown message expectation
e2e/tests snapshots Updated line numbers in snapshots due to code removal
CHANGELOG.md Added feature entry for resolver bump
.yarnrc.yml Set enableTelemetry: false
Comments suppressed due to low confidence (1)

@JounQin

JounQin commented Jul 6, 2025

Copy link
Copy Markdown
Collaborator Author

@cpojer @SimenB Is that possible to give me write permission on this repo or org so that I don't need to fork the repository anymore?

@cpojer

cpojer commented Jul 9, 2025

Copy link
Copy Markdown
Member

I gave you access, but please still use a fork for PRs as is common.

@JounQin

JounQin commented Jul 10, 2025

Copy link
Copy Markdown
Collaborator Author

OK, that's fine.

expect(() => {
require('undeclared');
}).toThrow(expect.objectContaining({code: 'MODULE_NOT_FOUND'}));
}).toThrow("Cannot find module 'unesitent_module__'");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why no longer error code? And where does unesitent_module__ (typo and all) come from?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const nope = require('unesitent_module__');

The error message comes from unrs-resolver if this PR merged, and it comes from jest-pnp-resolver before.

@cpojer

cpojer commented Jul 27, 2025

Copy link
Copy Markdown
Member

@JounQin what's the status of this PR?

@JounQin

JounQin commented Jul 27, 2025

Copy link
Copy Markdown
Collaborator Author

@cpojer The windows compatibility issue has not been resolved: yarnpkg/pnp-rs#10 although the test cases are all passed currently here.

@tyadeola

tyadeola commented Sep 5, 2025

Copy link
Copy Markdown

Summary

Remove Sirdennis-jest

Test plan

@SimenB

SimenB commented May 4, 2026 •

Copy link
Copy Markdown
Member

Upstream PR landed - could this be rebased and land now?

@JounQin
JounQin force-pushed the chore/bump_unrs-resolver branch from de1f930 to 10e678a Compare May 19, 2026 04:00
@netlify

netlify Bot commented May 19, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for jestjs ready!

Name Link
🔨 Latest commit 3f8f664
🔍 Latest deploy log https://app.netlify.com/projects/jestjs/deploys/6a0c01253d925c0008a9183a
😎 Deploy Preview https://deploy-preview-15721--jestjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@JounQin
JounQin marked this pull request as ready for review May 19, 2026 04:01
@JounQin JounQin changed the title chore: bump unrs-resolver to 1.11.0, remove jest-pnp-resolver and unnecessary checks chore: bump unrs-resolver to 1.12.1, remove jest-pnp-resolver and unnecessary checks May 19, 2026
@JounQin
JounQin force-pushed the chore/bump_unrs-resolver branch from 10e678a to 0e450ba Compare May 19, 2026 04:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.

Comment thread CHANGELOG.md Resolved
Comment thread CHANGELOG.md Resolved

@SimenB SimenB left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! nice cleanup 🙂

@SimenB
SimenB merged commit 5e56105 into jestjs:main May 19, 2026
88 of 89 checks passed
@JounQin
JounQin deleted the chore/bump_unrs-resolver branch May 19, 2026 07:35
@github-actions

Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jun 22, 2026
@SimenB

SimenB commented Aug 28, 2026

Copy link
Copy Markdown
Member

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants