@constructive-io/playwright-test 1.1.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,7 +33,7 @@ const createConnectionsWithServerBase = async (input, seedAdapters) => {
33
33
  defaultDatabaseId: 'test-database',
34
34
  ...(input.authRole && { anonRole: input.authRole, roleName: input.authRole })
35
35
  },
36
- graphile: input.graphile
36
+ ...(input.graphile && { graphile: input.graphile })
37
37
  });
38
38
  // Start the HTTP server
39
39
  const server = await createTestServer(serverOpts, input.server);
@@ -36,7 +36,7 @@ const createConnectionsWithServerBase = async (input, seedAdapters) => {
36
36
  defaultDatabaseId: 'test-database',
37
37
  ...(input.authRole && { anonRole: input.authRole, roleName: input.authRole })
38
38
  },
39
- graphile: input.graphile
39
+ ...(input.graphile && { graphile: input.graphile })
40
40
  });
41
41
  // Start the HTTP server
42
42
  const server = await (0, server_1.createTestServer)(serverOpts, input.server);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructive-io/playwright-test",
3
- "version": "1.1.0",
3
+ "version": "2.0.0",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "Constructive Playwright Testing with HTTP server support",
6
6
  "main": "index.js",
@@ -32,19 +32,19 @@
32
32
  "@playwright/test": "^1.57.0",
33
33
  "@types/express": "^5.0.6",
34
34
  "@types/pg": "^8.16.0",
35
- "makage": "^0.1.12"
35
+ "makage": "^0.1.10"
36
36
  },
37
37
  "dependencies": {
38
- "@constructive-io/graphql-env": "^2.10.0",
39
- "@constructive-io/graphql-server": "^3.1.0",
40
- "@constructive-io/graphql-test": "^3.1.0",
41
- "@constructive-io/graphql-types": "^2.15.0",
38
+ "@constructive-io/graphql-env": "^3.0.0",
39
+ "@constructive-io/graphql-server": "^4.0.0",
40
+ "@constructive-io/graphql-test": "^4.0.0",
41
+ "@constructive-io/graphql-types": "^3.0.0",
42
42
  "@pgpmjs/types": "^2.16.0",
43
43
  "express": "^5.2.1",
44
- "graphile-test": "^3.1.0",
44
+ "graphile-test": "^4.0.0",
45
45
  "pg": "^8.17.1",
46
- "pg-cache": "^2.1.0",
47
- "pgsql-test": "^3.1.0"
46
+ "pg-cache": "^3.0.0",
47
+ "pgsql-test": "^4.0.0"
48
48
  },
49
49
  "keywords": [
50
50
  "testing",
@@ -55,5 +55,5 @@
55
55
  "e2e",
56
56
  "integration"
57
57
  ],
58
- "gitHead": "048188f6b43ffaa6146e7694b2b0d35d34cb2945"
58
+ "gitHead": "b2daeefe49cdefb3d01ea63cf778fb9b847ab5fe"
59
59
  }
package/server.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { PgpmOptions } from '@pgpmjs/types';
1
+ import type { ConstructiveOptions } from '@constructive-io/graphql-types';
2
2
  import { Pool } from 'pg';
3
3
  import type { ServerInfo, PlaywrightServerOptions } from './types';
4
4
  /**
@@ -7,8 +7,8 @@ import type { ServerInfo, PlaywrightServerOptions } from './types';
7
7
  * This creates an Express server with the Constructive GraphQL middleware
8
8
  * configured with enableServicesApi: false to bypass domain routing.
9
9
  */
10
- export declare const createTestServer: (opts: PgpmOptions, serverOpts?: PlaywrightServerOptions) => Promise<ServerInfo>;
10
+ export declare const createTestServer: (opts: ConstructiveOptions, serverOpts?: PlaywrightServerOptions) => Promise<ServerInfo>;
11
11
  /**
12
12
  * Get the PostgreSQL pool for the test server
13
13
  */
14
- export declare const getTestPool: (opts: PgpmOptions) => Pool;
14
+ export declare const getTestPool: (opts: ConstructiveOptions) => Pool;