fix(tooling): fix jest setup for UI testing#460
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
|
This pull request is automatically being deployed by Amplify Hosting (learn more). |
rarajes2
left a comment
There was a problem hiding this comment.
LGTM. Let's address the comments to keep the info documented so that we later have the context on the changes.
# [1.28.0-ccwidgets.62](v1.28.0-ccwidgets.61...v1.28.0-ccwidgets.62) (2025-05-26) ### Bug Fixes * **tooling:** fix jest setup for UI testing ([#460](#460)) ([7c4a021](7c4a021))
|
🎉 This PR is included in version 1.28.0-ccwidgets.62 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
COMPLETES # https://jira-eng-sjc12.cisco.com/jira/browse/CAI-6271
This pull request addresses
Examples - (check
packages/contact-center/task/tests/TaskList/index.tsx)
by making the following changes
The major change made is in the tooling for babel and jest
Renamed .babelrc -> babel.config.js (recomended by jes)
Moved jest config from package.json to jest.config.js
Added
transformIgnorePatternsto transpile the UI libraries (@momentum-design and MRV2)Removed all the UI mocks and UI element mocks from the tests
Fixed any broken mockData to ensure that tests are passing
Change Type
The following scenarios were tested
< ENUMERATE TESTS PERFORMED, WHETHER MANUAL OR AUTOMATED >
The GAI Coding Policy And Copyright Annotation Best Practices
Checklist before merging