-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
chore: bump unrs-resolver
to 1.11.0, remove jest-pnp-resolver
and unnecessary checks
#15721
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
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
@@ -2,6 +2,8 @@ compressionLevel: mixed | |||
|
|||
enableGlobalCache: true | |||
|
|||
enableTelemetry: false |
There was a problem hiding this comment.
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.
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.
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, andfile://
URL handling indefaultResolver.ts
- Bump dependency
unrs-resolver
to^1.11.0
and dropjest-pnp-resolver
inpackage.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. |
@@ -9,5 +9,5 @@ | |||
it('should surface pnp errors', () => { | |||
expect(() => { | |||
require('undeclared'); | |||
}).toThrow(expect.objectContaining({code: 'MODULE_NOT_FOUND'})); | |||
}).toThrow("Cannot find module 'unesitent_module__'"); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Summary
Remove
jest-pnp-resolver
Test plan