Skip to content

build: update dependency @web/test-runner to v1#3837

Open
angular-robot wants to merge 1 commit into
angular:mainfrom
angular-robot:ng-renovate/web-test-runner-1-x
Open

build: update dependency @web/test-runner to v1#3837
angular-robot wants to merge 1 commit into
angular:mainfrom
angular-robot:ng-renovate/web-test-runner-1-x

Conversation

@angular-robot

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@web/test-runner (source) ^0.20.2^1.0.0 age adoption passing confidence

  • If you want to rebase/retry this PR, check this box

Release Notes

modernweb-dev/web (@​web/test-runner)

v1.0.0

Compare Source

Major Changes
  • 5260164: Drop support for Node.js 18 and 20, which have reached end-of-life. The minimum supported Node.js version is now 22.0.0.
    The Node code is compiled to ES2024 which is aligned with the Node 22.
Patch Changes

See associated pull request for more information.
@angular-robot angular-robot added action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project target: automation This PR is targeted to only merge into the branch defined in Github [bot use only] labels Jul 10, 2026

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request updates the @web/test-runner dependency from ^0.20.2 to ^1.0.0 in package.json along with its lockfile. The review feedback highlights a critical version mismatch, as @web/test-runner-core remains pinned to ^0.13.4. This discrepancy can lead to runtime errors or communication failures because the test runner will serve an outdated browser session script. It is recommended to align both packages to version ^1.0.0.

Comment on lines +24 to 25
"@web/test-runner": "^1.0.0",
"@web/test-runner-core": "^0.13.4",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

Updating @web/test-runner to ^1.0.0 while leaving @web/test-runner-core at ^0.13.4 introduces a critical version mismatch.

Specifically, in wtr.config.mjs, the configuration reads the browser session script directly from the file system:

'../node_modules/@web/test-runner-core/browser/session.js'

Because @web/test-runner-core is pinned to ^0.13.4 in package.json, pnpm will install the old v0.13.4 version at the top-level node_modules. This means the test runner (running v1.0.0) will serve the old v0.13.4 session script to the browser, which is highly likely to cause runtime errors or communication failures.

Please update @web/test-runner-core to ^1.0.0 to ensure version alignment. You should also consider updating @web/dev-server-rollup and @web/test-runner-puppeteer to their corresponding major versions to avoid other potential incompatibilities.

Suggested change
"@web/test-runner": "^1.0.0",
"@web/test-runner-core": "^0.13.4",
"@web/test-runner": "^1.0.0",
"@web/test-runner-core": "^1.0.0",

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

Labels

action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project target: automation This PR is targeted to only merge into the branch defined in Github [bot use only]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant