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

fix(fireEvent): automatically configure fireEvent to be wrapped in act #685

Merged
merged 2 commits into from Jun 1, 2020

Commits on Jun 1, 2020

  1. fix(fireEvent): automatically configure fireEvent to be wrapped in act

    Now not only will React Testing Library's `fireEvent` be wrapped in
    `act`, but so will DOM Testing Library's `fireEvent` (if
    `@testing-library/react` is imported). It works very similar to async
    act for the `asyncWrapper` config.
    
    Closes: testing-library/user-event#188
    Closes: testing-library/user-event#255
    Reference: https://github.com/testing-library/user-event/issues/277
    kentcdodds committed Jun 1, 2020
    Copy the full SHA
    7bd8be8 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    1e2e113 View commit details
    Browse the repository at this point in the history