Skip to content

Native Node test runner can't find tests located in folder containing square braces #612

@MrBr

Description

@MrBr

Running following script will yield empty results (0 tests found) in Node v21 or greater:

node --test src/app/api/[\id\]/route.spec.js

The file exists since it would throw an error otherwise. Also, it works with Node 20.17.0.

I'm not sure if the error is in Glob or in Node but would like to track it down. Any help/hints are appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions