Skip to content

test runner: not execute the glob pattern of files correctly #52191

@ramonpaolo

Description

@ramonpaolo

Version

v20.11.0

Platform

Darwin 23.4.0 Darwin Kernel Version 23.4.0: Wed Feb 21 21:44:43 PST 2024; root:xnu-10063.101.15~2/RELEASE_ARM64_T6000 arm64

Subsystem

test

What steps will reproduce the bug?

example.zip

Download the zip

# install libs(express)
$ yarn

# execute the tests
$ yarn test

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

This happen every time

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

I expected to run all tests inside folder __tests__ that end with .test.js

This is my expectation, because the glob pattern __tests__/**/*.test.js need to match with all files inside __tests__ that have the end of name of file with .test.js

References
The documentation of test runner in the site: Link

What do you see instead?

This only run the files that match *.test.js and that is only child of e2e, integration and unit folders!

Additional information

(sorry english)

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