Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mocha is not running all UT when any test is in sub folder #66

Open
kmorcinek opened this issue Oct 18, 2020 · 0 comments
Open

Mocha is not running all UT when any test is in sub folder #66

kmorcinek opened this issue Oct 18, 2020 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@kmorcinek
Copy link
Owner

kmorcinek commented Oct 18, 2020

Right now all UT are in folder /tests. When any new UT is created in sub folder, only that new test is running after npm test.

In package.json there is the default command for running tests:

"scripts": {
  "test": "mocha -r ts-node/register tests/**/*.test.ts",

Reproduction can be found on branch https://github.com/kmorcinek/conqueror-browser-spy/runs/1270882356?check_suite_focus=true where only 2 UT from SeasonsTest were executed.

@kmorcinek kmorcinek added bug Something isn't working good first issue Good for newcomers labels Oct 18, 2020
@kmorcinek kmorcinek changed the title Mocha is not running a UT that are in subfolders Mocha is not running all UT when any test is in sub folder Oct 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant