Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Add terra enzyme intl to jest config #4025

Merged
merged 12 commits into from
Feb 8, 2024
Merged

Conversation

sdadn
Copy link
Contributor

@sdadn sdadn commented Feb 8, 2024

Summary

This PR adds terra-enzyme-intl to the Jest config for consistency with the existing global enzyme config and for better developer experience. Now, terra-enzyme-intl methods such as shadowWithIntlcan now be called globally in any jest test as enzymeIntl.shadowWithIntl without having to import the library in each file. Similarly, Enzyme methods such as mount can be called as enzyme.mount for improved clarification of the method's source library.

Testing

This change was tested using:

  • WDIO
  • Jest
  • Visual testing (please attach a screenshot or recording)
  • Other (please describe below)
  • No tests are needed

Reviews

In addition to engineering reviews, this PR needs:

  • UX review
  • Accessibility review
  • Functional review

Additional Details


Thank you for contributing to Terra.
@cerner/terra

@sdadn sdadn self-assigned this Feb 8, 2024
@sdadn sdadn requested a review from a team as a code owner February 8, 2024 15:11
@github-actions github-actions bot temporarily deployed to preview-pr-4025 February 8, 2024 15:18 Destroyed
@sdadn sdadn merged commit fd160f6 into main Feb 8, 2024
22 checks passed
@sdadn sdadn deleted the add-enzymeIntl-to-jest-config branch February 8, 2024 19:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants