Skip to content

Commit

Permalink
fix: types jest globals
Browse files Browse the repository at this point in the history
  • Loading branch information
danstarns committed May 12, 2023
1 parent 40db3e2 commit aee3e45
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions package/tests/GQLPTClient.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { parse, print } from "graphql";
import { GQLPTClient } from "../src";
import dotenv from "dotenv";
import { describe, expect, test } from "@jest/globals";

dotenv.config();

export const TEST_API_KEY = process.env.TEST_API_KEY as string;
Expand Down Expand Up @@ -76,8 +78,8 @@ describe("GQLPTClient", () => {

expect(parsePrint(query)).toEqual(
parsePrint(`
query ($where: UserWhereInput) {
users(where: $where) {
query ($name: String) {
users(where: {name: $name}) {
id
name
email
Expand All @@ -92,9 +94,7 @@ describe("GQLPTClient", () => {
);

expect(variables).toMatchObject({
where: {
name: "dan",
},
name: "dan",
});
});

Expand Down

0 comments on commit aee3e45

Please sign in to comment.