-
-
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
testPathDirs
does not work with React Native, but testRegex
does
#2670
Comments
Don't use testPathDirs for this, it actually means "roots". We should eventually rename this option. |
Is using |
|
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. |
Do you want to request a feature or report a bug?
Bug.
What is the current behavior?
I'm trying to add RN support to my Aesthetic project, but am running into a few issues. I have updated my
jest.json
with"preset": "react-native"
, which works, but it seems like"testPathDirs": ["./tests"],
does not work as it throws these errors:If I replace
testPathDirs
with"testRegex": "./tests/.*\\.test\\.js$",
, the tests now run. I've tried all the examples I've seen to "fix this", but nothing has worked. Using a regex pattern seems hacky.PR here: https://github.com/milesj/aesthetic/pull/4/files
What is the expected behavior?
Tests run using
testPathDirs
.The text was updated successfully, but these errors were encountered: