Skip to content

Commit

Permalink
Merge pull request #5184 from MacondoExpress/migrate-test-4667-to-old…
Browse files Browse the repository at this point in the history
…-tooling

Migrate 4667 tests to use old tooling
  • Loading branch information
MacondoExpress authored May 30, 2024
2 parents 561fa89 + 36b1d65 commit 1dfe40d
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 = gql`
query {
myThings(where: { stuff: null }) {
id
Expand Down

0 comments on commit 1dfe40d

Please sign in to comment.