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

Jest doesn't detect tests if root path contains a dot #3111

Closed
ghost opened this issue Mar 9, 2017 · 5 comments
Closed

Jest doesn't detect tests if root path contains a dot #3111

ghost opened this issue Mar 9, 2017 · 5 comments

Comments

@ghost
Copy link

ghost commented Mar 9, 2017

Do you want to request a feature or report a bug?
Bug (regression)

What is the current behavior?
Jest 19.0.2:

~/.project $ npm test

> project@1.0.0 test /Users/work/.project
> jest

No tests found
  2 files checked.
  roots: /Users/work/.project - 2 matches
  testMatch: **/__tests__/**/*.js?(x),**/?(*.)(spec|test).js?(x) - 0 matches
  testPathIgnorePatterns: /node_modules/ - 2 matches

What is the expected behavior?
Jest 18.1.0:

~/.project $ npm test

> project@1.0.0 test /Users/work/.project
> jest

 PASS  __tests__/sample.test.js
  test
    ✓ passes (2ms)

Test Suites: 1 passed, 1 total
Tests:       1 passed, 1 total
Snapshots:   0 total
Time:        0.925s
Ran all test suites.

Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.

  • macOS 10.12.3 (used to manually run examples above)
    ** Jest: 19.0.2
    ** node: 7.4
    ** npm: 4.0.5

  • Debian 8 (https://github.com/Strider-CD/strider)
    ** Jest: 19.0.2
    ** Jest configuration: default
    ** node: 7.5
    ** npm: 4.1.2

Note
The regression is critical for Strider based continuous integration setup. Strider uses ~/.strider as its working folder.

@cpojer
Copy link
Member

cpojer commented Mar 9, 2017

This will be fixed in the next release next week: #3006

@cpojer cpojer closed this as completed Mar 9, 2017
@JohnAlbin
Copy link

JohnAlbin commented Oct 25, 2018

This was working in Jest v22.4.4 and is broken again in the latest Jest v23.

@SimenB
Copy link
Member

SimenB commented Oct 25, 2018

Can you open up a new issue with a reproduction?

@SimenB
Copy link
Member

SimenB commented Oct 25, 2018

That said, the test in #3006 is failing for me locally, need to investigate that

@github-actions
Copy link

github-actions bot commented Jun 2, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants