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

[frontend] configure jest to work with cuix #3503

Merged

Conversation

bjornalm
Copy link
Collaborator

What changes were proposed in this pull request?

  • Add transformation the cuix and cuix-core libraries in our jest testing setup in order to get the js modules working.
  • Remove mocks used as a workaround in the ReactExample.test.tsx

How was this patch tested?

  • (Please explain how this patch was tested. Ex: unit tests, manual tests)
  • (If this patch involves UI changes, please attach a screen-shot; otherwise, remove this)

Please review Hue Contributing Guide before opening a pull request.

Copy link
Contributor

@JohanAhlen JohanAhlen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one!

Copy link
Collaborator

@nidhibhatg nidhibhatg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

We had to transform the cuix and cuix-core libraries in our jest testing setup in order to get the js modules working.
@bjornalm bjornalm force-pushed the bjorn--Enable-unit-testing-for-react-components-using-cuix branch from beb3ba4 to 4eba364 Compare October 26, 2023 13:54
@bjornalm bjornalm enabled auto-merge (rebase) November 8, 2023 17:33
@bjornalm bjornalm merged commit deac365 into master Nov 8, 2023
4 of 5 checks passed
@bjornalm bjornalm deleted the bjorn--Enable-unit-testing-for-react-components-using-cuix branch November 8, 2023 17:53
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