Skip to content

Commit

Permalink
Attempt to fix a flaky Jest spy test.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamn committed Apr 4, 2023
1 parent 6f68be9 commit ee9a48d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react/hooks/__tests__/useQuery.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5017,7 +5017,7 @@ describe('useQuery Hook', () => {
expect(result.current.data).toEqual(carData);
expect(result.current.error).toBeUndefined();

expect(errorSpy).toHaveBeenCalledTimes(1);
expect(errorSpy).toHaveBeenCalled();
expect(errorSpy).toHaveBeenLastCalledWith(
`Missing field 'vin' while writing result ${JSON.stringify({
id: 1,
Expand Down

0 comments on commit ee9a48d

Please sign in to comment.