Closed
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.