-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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 <regexForTestFiles>
CLI not picking up tests
#5740
Comments
Hey @MadLittleMods, this is expected as the default matchers exclude your file and Jest will never run tests that are excluded through the config. See #5735 for a feature request to do this with an CLI argument and #5544, #5317, and #5527 for more info |
This comment explains it well,
I was caught in the between rollout and rollback where this worked and all of the sudden didn't work in a minor release. Thanks for the extra info 🙂 |
Hi,
This is my
|
@angshuman-agarwal What are your test files named? I suspect you need to update |
@MadLittleMods i m getting the same error. My directory structure:
Dev dependencies in my package:
jest.config.js:
Running:
|
@asulaiman Probably best to create your own issue. Check the regex |
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. |
jest <regexForTestFiles>
CLI not picking up tests.Perhaps related to #5582
What is the current behavior?
Barebones demo repo: https://gitlab.com/MadLittleMods/jest-test-regex-issue-barebones-test-case1
Reproduction steps
jest@22.4.2
some-test.js
jest some-test.js
No tests found
What is the expected behavior?
The
jest <regexForTestFiles>
CLI syntax should match files regardless oftestMatch
config.This previously worked with
jest@22.3.0
but I am unable to downgrade successfully and confirm because it always installsjest-cli@22.4.2
. Any tips? Related #405, #3391This installs
jest@22.3.0
andjest-cli@22.3.0
but throws other errorsThe text was updated successfully, but these errors were encountered: