Skip to content

Commit

Permalink
Remove inline requires
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Nov 23, 2024
1 parent 45d9c13 commit 38d8567
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion __tests__/helpers.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// @ts-check
const pg = require("pg");
const { readFile } = require("fs");
const pgConnectionString = require("pg-connection-string");

// This test suite can be flaky. Increase it’s timeout.
jest.setTimeout(1000 * 20);
Expand Down
3 changes: 2 additions & 1 deletion __tests__/integration/schema/columnAggregates.test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// @ts-check
const core = require("./core");
const { default: PgOrderByRelatedPlugin } = require("../../../dist/index.js");

test(
"prints a schema with the order-by-related plugin",
core.test(["p"], {
appendPlugins: [require("../../../dist/index.js")],
appendPlugins: [PgOrderByRelatedPlugin],
disableDefaultMutations: true,
legacyRelations: "omit",
graphileBuildOptions: {
Expand Down
3 changes: 2 additions & 1 deletion __tests__/integration/schema/ignoreIndexes.test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// @ts-check
const core = require("./core");
const { default: PgOrderByRelatedPlugin } = require("../../../dist/index.js");

test(
"prints a schema with `ignoreIndexes: false`",
core.test(["p"], {
appendPlugins: [require("../../../dist/index.js")],
appendPlugins: [PgOrderByRelatedPlugin],
disableDefaultMutations: true,
legacyRelations: "omit",
ignoreIndexes: false,
Expand Down
3 changes: 2 additions & 1 deletion __tests__/integration/schema/orderByRelated.test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// @ts-check
const core = require("./core");
const { default: PgOrderByRelatedPlugin } = require("../../../dist/index.js");

test(
"prints a schema with the order-by-related plugin",
core.test(["p"], {
appendPlugins: [require("../../../dist/index.js")],
appendPlugins: [PgOrderByRelatedPlugin],
disableDefaultMutations: true,
legacyRelations: "omit",
})
Expand Down

0 comments on commit 38d8567

Please sign in to comment.