-
-
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
Two projects with different modulePaths
have failing tests
#4649
Comments
It seems to be related to #4649 if I read the comment properly:
|
We might wanna address that in #7185 |
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 have opened a PR to better illustrate the issue:
Automattic/wp-calypso#18702
We are using:
I wanted to combine two Jest project into one mirroring one of the PRs from the React's repository: facebook/react#10214 to be able to use one command
npm test
aliasingjest
. At the moment we have to run two projects independently which isn't the best developer's experience in my opinion. Both of them pass when executed in isolation.At the moment a few tests fail when I run
npm test
:If you run only subset of tests using the following command
npm run test server
, then all the failing tests pass:We use different setup for both projects and my bet is that the module paths is the source of this error as they differ in those two config files:
full config file
vs
full config file
What is the expected behavior?
It's possible to execute
npm test
which is alias tojest
with the following config inpackage.json
:and all tests pass.
The text was updated successfully, but these errors were encountered: