@edx/frontend-build
v12.8.61 upgrades Jest v26 -> v27, but causes breaking changes for consumers
#174
Closed
2 tasks done
Labels
bug
Report of or fix for something that isn't working as intended
maintenance
Routine upkeep necessary for the health of the platform
When upgrading
@edx/frontend-build
to its latest version in at least thefrontend-app-learner-portal-enterprise
MFE, it was observed that CI begin failing immediately after successfully passing all the Jest tests run vianpm run test
:It appears upgrading Jest from v26 -> v27 brought in some breaking changes (see release notes) that could impact consumers, where we may want to ensure that upgrade gets properly released as a breaking change to mitigate these concerns.
The relevant breaking change in Jest v27 I believe is impacting at least
frontend-app-learner-portal-enterprise
(see draft upgrade PR) is:I believe this is the case given some tests in this impacted MFE are seeing warnings such as:
Now that Jest v27 sets error code to 1 if such logs occur after the test teardown, I believe this MFE fails CI. Any other MFE that upgrades to this version and has similar concerns in their tests around async operations may begin failing CI unexpectedly.
This issue unfortunately could not be replicated locally; only in CI.
I would recommend the following next steps:
frontend-app-learner-portal-enterprise
.The text was updated successfully, but these errors were encountered: