Closed adamstankiewicz closed 9 months ago
Initially we tested it for multiple different MFEs but it was working fine but you are correct here, with more thorough inspection we came across 2 more, frontend-lib-content-components & frontend-app-enterprise-public-catalog for which it's also failing. Thanks for bringing it to our attention, I have made a revert for it and we will open a new PR to upgrade to Jest as a breaking change.
Looks like this is done! Meaning, the upgrade was reverted and a breaking change PR made.
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
.