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

testMatch should find tests in .folders #3006

Merged
merged 2 commits into from
Feb 27, 2017
Merged

testMatch should find tests in .folders #3006

merged 2 commits into from
Feb 27, 2017

Conversation

zsol
Copy link
Contributor

@zsol zsol commented Feb 26, 2017

Summary

When a test is inside a folder that's name starts with ., they are ignored by testMatch but are correctly found by testRegex. It's even more obscure if the entire project is checked out below a dot-folder, in which case all tests are ignored by testMatch which is now the default way of finding tests.

Test plan

yarn test

@cpojer
Copy link
Member

cpojer commented Feb 26, 2017

Seems like this fails on travis, you might need to sort something there.

@codecov-io
Copy link

Codecov Report

Merging #3006 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master    #3006   +/-   ##
=======================================
  Coverage   67.86%   67.86%           
=======================================
  Files         147      147           
  Lines        5349     5349           
=======================================
  Hits         3630     3630           
  Misses       1719     1719
Impacted Files Coverage Δ
packages/jest-cli/src/SearchSource.js 61.62% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 445663b...b2bef2f. Read the comment docs.

@cpojer cpojer merged commit 4c6b93c into jestjs:master Feb 27, 2017
@cpojer
Copy link
Member

cpojer commented Feb 27, 2017

Thanks! Would you mind auditing the other places we use micromatch in to make sure we cover everything?

@zsol
Copy link
Contributor Author

zsol commented Feb 27, 2017 via email

skovhus pushed a commit to skovhus/jest that referenced this pull request Apr 29, 2017
* testMatch should find tests in .folders

* dont depend on order of paths in tests
tushardhole pushed a commit to tushardhole/jest that referenced this pull request Aug 21, 2017
* testMatch should find tests in .folders

* dont depend on order of paths in tests
@github-actions
Copy link

This pull request 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 May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants