-
-
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
Apply appropriate configs for different tests ran as different projects #7268
Comments
UPD: I suspect that my issue is connected with #7186 |
UPD: When I run the same failing test filtering it via |
Guys, any thoughts? |
Sure, I'll feedback |
Nope, it didn't help. I'll update description. BTW, project didn't run successfully. It complained about babel 6. I had to remove jest and babel-jest and install again |
@SimenB , please see demo |
UPD: Seems this issue is resources dependent. On my machine tests fail, when on another they doesn't. My machine: Node: 10.11.0 Also, as you can notice I've created a lot |
Guys, any updates\thoughts on the issue? |
Hey @deser, sorry for the delay - reading through this it's hard to understand what the issue is Can you dumb this down for me? |
Yes, sure. In 2 words |
Also experiencing similar issues, projects basically does not work. |
This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 14 days. |
This issue was closed because it has been stalled for 7 days with no activity. Please open a new issue if the issue is still relevant, linking to this one. |
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. |
Hi Guys.
Seems
projects
doesn't work as intended. I have jest config which is intended to run all my type of tests:It is impossible that file of
unit
tests would be grabbed byui
tests, see regex:ui
:testRegex: '/__tests__/.*-test\\.js?$',
unit
:testMatch: ['**/__tests__/**/?(*.)+(spec).js']
These
ui
andunit
configs have different setups. For example forui
tests I need to resolve allcss
files successfully, I do this via:unit
tests config doesn't have this setup.So, when I run
ui
andunit
tests separately - all good.When I try to run
all
tests config - I see thatmoduleNameMapper
doesn't work forui
tests.In total, expected behaviour:
File which is found for UI test should be executed with the help of appropriate config.
UPD: DEMO
To see behavior please clone repo https://github.com/deser/jest_issue-7268 and follow steps in README.md
The text was updated successfully, but these errors were encountered: