Skip to content

Commit

Permalink
change 4667 tests to use tooling available on 4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
MacondoExpress committed May 30, 2024
1 parent a77109e commit be00218
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion packages/graphql/tests/integration/issues/4667.int.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,13 @@ describe("https://github.com/neo4j/graphql/issues/4667", () => {
});

afterEach(async () => {
await cleanNodes(driver, [MyThing, MyStuff]);
const session = await neo4j.getSession();
try {
await cleanNodes(session, [MyThing, MyStuff]);
} finally {
await session.close();
}
await driver.close();
});

afterAll(async () => {
Expand Down
3 changes: 2 additions & 1 deletion packages/graphql/tests/tck/issues/4667.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* limitations under the License.
*/

import gql from "graphql-tag";
import { Neo4jGraphQL } from "../../../src";
import { formatCypher, formatParams, translateQuery } from "../utils/tck-test-utils";

Expand All @@ -36,7 +37,7 @@ describe("https://github.com/neo4j/graphql/issues/4667", () => {

const neoSchema = new Neo4jGraphQL({ typeDefs });

const query = /* GraphQL */ `
const query = /* GraphQL */ gql`
query {
myThings(where: { stuff: null }) {
id
Expand Down

0 comments on commit be00218

Please sign in to comment.