Skip to content

Commit b5d4d32

Browse files
committed
test(orm): drop redundant PostgisSpatialRelationsPlugin registration
GraphilePostgisPreset (in graphile-postgis@2.11.0) already registers PostgisSpatialRelationsPlugin in its plugins array, and ConstructivePreset extends GraphilePostgisPreset. So `extends: [ConstructivePreset]` is all that's needed — my earlier explicit registration was a leftover from debugging and is redundant. All 36 ORM tests still pass.
1 parent 38aec8f commit b5d4d32

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

packages/integration-tests/__tests__/orm.test.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import { getConnectionsObject, seed } from 'graphile-test';
1818
import type { GraphQLQueryFnObj } from 'graphile-test';
1919
import type { PgTestClient } from 'pgsql-test';
2020
import { ConstructivePreset } from 'graphile-settings';
21-
import { PostgisSpatialRelationsPlugin } from 'graphile-postgis';
2221
import { runCodegenAndLoad } from './helpers/codegen-helper';
2322
import { GraphileTestAdapter } from './helpers/graphile-adapter';
2423

@@ -75,13 +74,6 @@ describe('ORM integration', () => {
7574
authRole: 'postgres',
7675
preset: {
7776
extends: [ConstructivePreset],
78-
// Register the PostgisSpatialRelationsPlugin so the
79-
// @spatialRelation smart tags seeded by spatial-relations.sql
80-
// are exposed as cross-table filters on the `where:` input.
81-
// ConstructivePreset bundles the scalar PostGIS filter
82-
// operators but does not auto-enable cross-table spatial
83-
// relations (that plugin is opt-in).
84-
plugins: [PostgisSpatialRelationsPlugin],
8577
},
8678
},
8779
[

0 commit comments

Comments
 (0)