Skip to content

Bug: isStrict option in no-unnecessary-act only reports strict violations #416

@zaicevas

Description

@zaicevas

With isStrict: true the no-unnecessary-act rule only reports mixed RTL+non RTL calls, but does not report act with only RTL calls, which is the behaviour without isStrict enabled.

      await act(async () => {
        userEvent.click(contactSupport) // not reported when isStrict is true
      })

I'll take a look at this one when I have the time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleased

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions