-
-
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
Treat setupFilesAfterEnv like setupFiles when normalizing configs against presets #9495
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9495 +/- ##
==========================================
+ Coverage 65% 65.02% +0.02%
==========================================
Files 283 283
Lines 12131 12133 +2
Branches 3002 3004 +2
==========================================
+ Hits 7886 7890 +4
+ Misses 3604 3603 -1
+ Partials 641 640 -1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, thanks! Mind updating the changelog as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just missing a changelog entry (of type fix) as Simen said. Thanks!
added entry to changelog, thanks! |
Thank you! |
@staylor @SimenB @jeysal But what if I want the local |
Same issue as @danielbayley ... we're working in a The root config with a specific See nrwl/nx#2344 (comment) and nrwl/nx#2314 (comment) for further details |
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. |
The value of
setupFiles
from a local Jest config is concatenated to the value ofsetupFiles
from a preset when the local Jest config specifiespreset
andsetupFiles
. The same should be true forsetupFilesAfterEnv
. Without this change, if the local Jest config wants to take advantage of thesetupFilesAfterEnv
files from the preset, it has to redeclare them:Before:
Value of
setupFilesAfterEnv
=['b']
After:
Value of
setupFilesAfterEnv
=['a', 'b']