Skip to content

Node 23 Regression: --test + --watch Do Not Display Error Details #56902

Closed
@pierophp

Description

@pierophp

Version

23.7.0

Platform

Linux piero-note-win 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Subsystem

No response

What steps will reproduce the bug?

Repro repository:
https://github.com/pierophp/node23-test-watch-repro

Run:
npm run test:watch

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

When using --watch with the --test flag, it doesn't display the error output. It works fine with Node 22, but this appears to be a regression from #50355.

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

Node 22 (AssertionError):
Image

What do you see instead?

Node 23:
Image

Additional information

It works on Node 23 without the --watch flag.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions