Skip to content

act() should warn in testing frameworks besides jest  #15439

@threepointone

Description

@threepointone

Do you want to request a feature or report a bug?

feature request

What is the current behavior?

The warnings for missing act() warnings around updates only happen in jest.

What is the expected behavior?

We should support other test runners/frameworks as well (like jasmine, karma, etc)

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

16.8.0+

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions