chore: bump unrs-resolver to 1.12.1, remove jest-pnp-resolver and unnecessary checks#15721
Conversation
✅ Deploy Preview for jestjs ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
babel-jest
babel-plugin-jest-hoist
babel-preset-jest
create-jest
@jest/diff-sequences
expect
@jest/expect-utils
jest
jest-changed-files
jest-circus
jest-cli
jest-config
@jest/console
@jest/core
@jest/create-cache-key-function
jest-diff
jest-docblock
jest-each
@jest/environment
jest-environment-jsdom
@jest/environment-jsdom-abstract
jest-environment-node
@jest/expect
@jest/fake-timers
@jest/get-type
@jest/globals
jest-haste-map
jest-jasmine2
jest-leak-detector
jest-matcher-utils
jest-message-util
jest-mock
@jest/pattern
jest-phabricator
jest-regex-util
@jest/reporters
jest-resolve
jest-resolve-dependencies
jest-runner
jest-runtime
@jest/schemas
jest-snapshot
@jest/snapshot-utils
@jest/source-map
@jest/test-result
@jest/test-sequencer
@jest/transform
@jest/types
jest-util
jest-validate
jest-watcher
jest-worker
pretty-format
commit: |
b1d5c47 to
8359d08
Compare
|
|
||
| enableGlobalCache: true | ||
|
|
||
| enableTelemetry: false |
There was a problem hiding this comment.
It slows every yarn related command.
unrs-resolver to 1.11.0, remove unnecessary checksunrs-resolver to 1.11.0, remove jest-pnp-resolver and unnecessary checks
There was a problem hiding this comment.
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-resolverimport, PnP branch, andfile://URL handling indefaultResolver.ts - Bump dependency
unrs-resolverto^1.11.0and dropjest-pnp-resolverinpackage.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)
|
I gave you access, but please still use a fork for PRs as is common. |
|
OK, that's fine. |
| expect(() => { | ||
| require('undeclared'); | ||
| }).toThrow(expect.objectContaining({code: 'MODULE_NOT_FOUND'})); | ||
| }).toThrow("Cannot find module 'unesitent_module__'"); |
There was a problem hiding this comment.
Why no longer error code? And where does unesitent_module__ (typo and all) come from?
There was a problem hiding this comment.
The error message comes from unrs-resolver if this PR merged, and it comes from jest-pnp-resolver before.
|
@JounQin what's the status of this PR? |
|
@cpojer The windows compatibility issue has not been resolved: yarnpkg/pnp-rs#10 although the test cases are all passed currently here. |
|
|
Upstream PR landed - could this be rebased and land now? |
de1f930 to
10e678a
Compare
✅ Deploy Preview for jestjs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
unrs-resolver to 1.11.0, remove jest-pnp-resolver and unnecessary checksunrs-resolver to 1.12.1, remove jest-pnp-resolver and unnecessary checks
10e678a to
0e450ba
Compare
0e450ba to
9537d56
Compare
Summary
Remove
jest-pnp-resolverTest plan