-
Notifications
You must be signed in to change notification settings - Fork 151
Open
Labels
enhancementNew feature or requestNew feature or requestpinnedPinned for different reasons. Issues with this label won't be flagged as stale by stalebotPinned for different reasons. Issues with this label won't be flagged as stale by stalebot
Description
What rule do you want to change?
no-unnecessary-act
Does this change cause the rule to produce more or fewer warnings?
More warnings
How will the change be implemented?
As discussed in #488 the act
method from react-test-renderer
must be reported too.
Example code
import { act } from "react-test-renderer";
import { fireEvent } from "@testing-library/react-native";
act(() => {
...fireEvent..
})
How does the current rule affect the code?
act
is not reported since it's imported from react-test-renderer
How will the new rule affect the code?
act
imported from react-test-renderer
should be reported too.
Anything else?
No response
Do you want to submit a pull request to change the rule?
Yes
fabiendem and jerone
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestpinnedPinned for different reasons. Issues with this label won't be flagged as stale by stalebotPinned for different reasons. Issues with this label won't be flagged as stale by stalebot