Skip to content

Commit

Permalink
Merge branch 'main' into renovate/major-all-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas authored Nov 27, 2023
2 parents 131c1de + c0c05ed commit fec4e21
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions src/react/hoc/__tests__/mutations/lifecycle.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { render, cleanup } from "@testing-library/react";
import { render } from "@testing-library/react";
import gql from "graphql-tag";

import { ApolloProvider } from "../../../context/ApolloProvider";
Expand All @@ -21,8 +21,6 @@ const expectedData = {
};

describe("graphql(mutation) lifecycle", () => {
afterEach(cleanup);

itAsync(
"allows falsy values in the mapped variables from props",
(resolve, reject) => {
Expand Down
2 changes: 1 addition & 1 deletion src/react/hoc/__tests__/queries/observableQuery.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ describe("[queries] observableQuery", () => {
// ensure first assertion and umount tree
await assert1();

userEvent.click(screen.getByText("Break things"));
await userEvent.click(screen.getByText("Break things"));

// ensure cleanup
await assert2();
Expand Down
4 changes: 1 addition & 3 deletions src/react/hoc/__tests__/shared-operations.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { render, cleanup } from "@testing-library/react";
import { render } from "@testing-library/react";
import gql from "graphql-tag";
import { DocumentNode } from "graphql";

Expand All @@ -25,8 +25,6 @@ function compose(...funcs: Function[]) {
}

describe("shared operations", () => {
afterEach(cleanup);

describe("withApollo", () => {
it("passes apollo-client to props", () => {
const client = new ApolloClient({
Expand Down

0 comments on commit fec4e21

Please sign in to comment.