Skip to content

Commit 38d8567

Browse files
committed
Remove inline requires
1 parent 45d9c13 commit 38d8567

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

__tests__/helpers.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// @ts-check
22
const pg = require("pg");
33
const { readFile } = require("fs");
4-
const pgConnectionString = require("pg-connection-string");
54

65
// This test suite can be flaky. Increase it’s timeout.
76
jest.setTimeout(1000 * 20);

__tests__/integration/schema/columnAggregates.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
// @ts-check
22
const core = require("./core");
3+
const { default: PgOrderByRelatedPlugin } = require("../../../dist/index.js");
34

45
test(
56
"prints a schema with the order-by-related plugin",
67
core.test(["p"], {
7-
appendPlugins: [require("../../../dist/index.js")],
8+
appendPlugins: [PgOrderByRelatedPlugin],
89
disableDefaultMutations: true,
910
legacyRelations: "omit",
1011
graphileBuildOptions: {

__tests__/integration/schema/ignoreIndexes.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
// @ts-check
22
const core = require("./core");
3+
const { default: PgOrderByRelatedPlugin } = require("../../../dist/index.js");
34

45
test(
56
"prints a schema with `ignoreIndexes: false`",
67
core.test(["p"], {
7-
appendPlugins: [require("../../../dist/index.js")],
8+
appendPlugins: [PgOrderByRelatedPlugin],
89
disableDefaultMutations: true,
910
legacyRelations: "omit",
1011
ignoreIndexes: false,

__tests__/integration/schema/orderByRelated.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
// @ts-check
22
const core = require("./core");
3+
const { default: PgOrderByRelatedPlugin } = require("../../../dist/index.js");
34

45
test(
56
"prints a schema with the order-by-related plugin",
67
core.test(["p"], {
7-
appendPlugins: [require("../../../dist/index.js")],
8+
appendPlugins: [PgOrderByRelatedPlugin],
89
disableDefaultMutations: true,
910
legacyRelations: "omit",
1011
})

0 commit comments

Comments
 (0)