Skip to content

--experimental-config-file broken in tests in 24.4.0 #59021

Closed

Description

@JakobJingleheimer

Version

24.4.0

Platform

macOS 15.5
ubuntu 24.4.0

Subsystem

test_runner

What steps will reproduce the bug?

Save to the following to node.config.test.json

{
  "$schema": "https://nodejs.org/dist/v24.4.0/docs/node-config-schema.json",
  "nodeOptions": {
    "experimental-webstorage": true,
  },
  "testRunner": {
    "experimental-test-module-mocks": true
  }
}

Create a test that uses mock.module and webstorage.

Run

node --no-warnings --experimental-config-file=./node.config.test.json --test './src/**/*.test.ts'

How often does it reproduce? Is there a required condition?

100%

What is the expected behavior? Why is that the expected behavior?

It works (like it does in node 24.3.0).

What do you see instead?

Neither feature has been enabled, resulting in the typical errors.

Additional information

Possibly/likely other options are also not working.

Activity

  1. changed the title [-]--experimental-config-file broken in tests in 24.4[/-] [+]`--experimental-config-file` broken in tests in 24.4[/+] on Jul 10, 2025
  2. changed the title [-]`--experimental-config-file` broken in tests in 24.4[/-] [+]`--experimental-config-file` broken in tests in 24.4.0[/+] on Jul 10, 2025
  3. JakobJingleheimer commented on Jul 10, 2025

    @JakobJingleheimer
    MemberAuthor

    @nodejs/test_runner @marco-ippolito

  4. marco-ippolito commented on Jul 10, 2025

    @marco-ippolito
    Member

    It's a bug caused by not propagating the options from the config file to child process spawned from test runner

  5. added
    configIssues and PRs related to Node.js configuration and feature settings.
    on Jul 14, 2025
  6. pmarchini commented on Aug 16, 2025

    @pmarchini
    Member

    This issue should have been addressed by #59138!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    configIssues and PRs related to Node.js configuration and feature settings.confirmed-bugIssues and PRs for confirmed bugs.test_runnerIssues and PRs related to the test runner subsystem.

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions