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

test: fix deprecated act usage warning #1085

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

petermakowski
Copy link
Contributor

@petermakowski petermakowski commented May 14, 2024

Done

This PR fixes deprecation warning about act usage from react-dom/test-utils

  • test: test: fix deprecated act usage warning
    • update act import from react
    • remove act in favour of async userEvent

QA

Storybook

To see rendered examples of all react-components, run:

yarn start

QA in your project

from react-components run:

yarn build
npm pack

Install the resulting tarball in your project with:

yarn add <path-to-tarball>

QA steps

  • Steps for QA.

Percy steps

  • List any expected visual change in Percy, or write something like "No visual changes expected" if none is expected.

Fixes

Fixes: # .

@webteam-app
Copy link

Signed-off-by: Peter Makowski <me+git@petermakowski.io>
@petermakowski petermakowski changed the title test: remove act in favour of async timers test: fix deprecated act usage warning May 14, 2024
@huwshimi huwshimi merged commit ea88a8e into canonical:main Sep 3, 2024
14 of 15 checks passed
Copy link

github-actions bot commented Sep 6, 2024

🎉 This PR is included in version 1.2.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants