@constructive-io/playwright-test 1.1.1 → 2.0.1
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.
- package/esm/get-connections.js +1 -1
- package/get-connections.js +1 -1
- package/package.json +10 -10
- package/server.d.ts +3 -3
package/esm/get-connections.js
CHANGED
|
@@ -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);
|
package/get-connections.js
CHANGED
|
@@ -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": "
|
|
3
|
+
"version": "2.0.1",
|
|
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.
|
|
35
|
+
"makage": "^0.1.10"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@constructive-io/graphql-env": "^
|
|
39
|
-
"@constructive-io/graphql-server": "^
|
|
40
|
-
"@constructive-io/graphql-test": "^
|
|
41
|
-
"@constructive-io/graphql-types": "^
|
|
38
|
+
"@constructive-io/graphql-env": "^3.0.0",
|
|
39
|
+
"@constructive-io/graphql-server": "^4.0.1",
|
|
40
|
+
"@constructive-io/graphql-test": "^4.0.1",
|
|
41
|
+
"@constructive-io/graphql-types": "^3.0.0",
|
|
42
42
|
"@pgpmjs/types": "^2.16.0",
|
|
43
43
|
"express": "^5.2.1",
|
|
44
|
-
"graphile-test": "^
|
|
44
|
+
"graphile-test": "^4.0.0",
|
|
45
45
|
"pg": "^8.17.1",
|
|
46
|
-
"pg-cache": "^
|
|
47
|
-
"pgsql-test": "^
|
|
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": "
|
|
58
|
+
"gitHead": "c05d6bd3dfa36690aefe21079042666dfae801a1"
|
|
59
59
|
}
|
package/server.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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:
|
|
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:
|
|
14
|
+
export declare const getTestPool: (opts: ConstructiveOptions) => Pool;
|