Skip to content
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

[PFX-454] - fix broken jest tests in @godaddy/webapp apps #678

Merged
merged 7 commits into from
Feb 20, 2024

Conversation

mmason2-godaddy
Copy link
Contributor

@mmason2-godaddy mmason2-godaddy commented Feb 16, 2024

Summary

First Error
Error: Jest could not parse the css imports and the @ux/pivot/style import correctly.
Fix: moduleNameMapper to parse imports correctly. Stubbed file here
Screenshot 2024-02-15 at 4 15 48 PM

Second Error
Error: [React Intl] Could not find required intl object. <IntlProvider> needs to exist in the component ancestry. For whatever reason react-intl wasn't working properly.
Fix: Mock react-intl
Screenshot 2024-02-15 at 4 17 33 PM

Third Error(Original error)
Error: Error: Not implemented: window.computedStyle(elt, pseudoElt)
Fix: Work around for this noisy error found via this GH comment
Screenshot 2024-02-15 at 4 18 38 PM

Changelog

  • fix broken Jest tests in new Gasket apps

Test Plan

New apps using @godaddy/webapp preset SHOULD have tests that pass. I'm having a hard time testing this locally with the preset.

@mmason2-godaddy mmason2-godaddy marked this pull request as ready for review February 16, 2024 00:36
@mmason2-godaddy mmason2-godaddy requested review from kinetifex and a team as code owners February 16, 2024 00:36
@mmason2-godaddy

This comment was marked as outdated.

@agerard-godaddy agerard-godaddy merged commit a9a4a3f into main Feb 20, 2024
4 checks passed
@agerard-godaddy agerard-godaddy deleted the PFX-454 branch February 20, 2024 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants