-
Notifications
You must be signed in to change notification settings - Fork 151
Closed
Labels
new ruleNew rule to be included in the pluginNew rule to be included in the pluginreleasedreleased on @beta
Description
I wonder if there'd be a way to make sure there's no snapshot done inside wait conditions.
Example invalid usage:
await wait(() => {
expect(foo).toMatchSnapshot();
});
Valid:
expect(foo).toMatchSnapshot();
This is between jest and and testing-library, but the depreciated wait()
functions allow tests like this to be written and lead to flakey cases.
Metadata
Metadata
Assignees
Labels
new ruleNew rule to be included in the pluginNew rule to be included in the pluginreleasedreleased on @beta