Skip to content

Commit

Permalink
Add void for more promises that need it
Browse files Browse the repository at this point in the history
jerelmiller committed Dec 12, 2024
1 parent 77c5aaa commit 95ac564
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/react/hooks/__tests__/useMutation.test.tsx
Original file line number Diff line number Diff line change
@@ -1637,7 +1637,7 @@ describe("useMutation Hook", () => {
case 0:
expect(loading).toBeFalsy();
expect(data).toBeUndefined();
createTodo({ variables });
void createTodo({ variables });

const dataInStore = client.cache.extract(true);
expect(dataInStore["Todo:1"]).toEqual(
4 changes: 2 additions & 2 deletions src/react/hooks/__tests__/useReactiveVar.test.tsx
Original file line number Diff line number Diff line change
@@ -294,7 +294,7 @@ describe("useReactiveVar Hook", () => {
}

render(<Component />);
Promise.resolve().then(() => {
void Promise.resolve().then(() => {
counterVar(1);
counterVar(2);
counterVar(3);
@@ -339,7 +339,7 @@ describe("useReactiveVar Hook", () => {
} else {
stopped = true;
expect(rv()).toBe(goalCount);
screen
void screen
.findByText(String(goalCount))
.then((element) => {
expect(element.nodeName.toLowerCase()).toBe("h1");

0 comments on commit 95ac564

Please sign in to comment.