Skip to content

[Bug]: module.register() deprecation warning (DEP0205) on Node 26 #40868

@finddaniel

Description

@finddaniel

Version

1.60.0

Steps to reproduce

  1. Install Node 26
  2. git clone https://github.com/finddaniel/playwright-node-26-demo
  3. npm install
  4. npx playwright test

Expected behavior

Tests run without deprecation warnings.

Actual behavior

Node emits a runtime [DEP0205] deprecation warning once per worker process on every test run:

(node:5399) [DEP0205] DeprecationWarning: `module.register()` is deprecated. Use `module.registerHooks()` instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

With the default worker count the warning appears multiple times — once per worker spawned. Visible in CI here: https://github.com/finddaniel/playwright-node-26-demo/actions/runs/25944187042/job/76268604371

Additional context

I'm interested in working on this if it's assigned to a community contributor.

Environment

  Binaries:
    Node: 26.1.0
  npmPackages:
    @playwright/test: ^1.60.0 => 1.60.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions