@constructive-io/playwright-test 3.1.0 → 3.1.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/README.md +4 -4
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -64,7 +64,7 @@ let connections: Awaited<ReturnType<typeof getConnectionsWithServer>>;
|
|
|
64
64
|
|
|
65
65
|
test.beforeAll(async () => {
|
|
66
66
|
connections = await getConnectionsWithServer({
|
|
67
|
-
schemas: ['
|
|
67
|
+
schemas: ['app_public'],
|
|
68
68
|
authRole: 'anonymous',
|
|
69
69
|
server: {
|
|
70
70
|
port: 5555,
|
|
@@ -150,15 +150,15 @@ Low-level function to create just the HTTP server without database setup.
|
|
|
150
150
|
|
|
151
151
|
1. Creates an isolated test database using `pgsql-test`
|
|
152
152
|
2. Starts an Express server with Constructive GraphQL middleware
|
|
153
|
-
3. Configures `
|
|
153
|
+
3. Configures `enableScopedRouting: false` (static mode) to bypass host route resolution
|
|
154
154
|
4. Exposes the specified schemas directly via the GraphQL endpoint
|
|
155
155
|
5. Returns the server URL for Playwright to connect to
|
|
156
156
|
6. Provides a teardown function that stops the server and cleans up the database
|
|
157
157
|
|
|
158
158
|
## Configuration
|
|
159
159
|
|
|
160
|
-
The server is configured with `
|
|
161
|
-
- No
|
|
160
|
+
The server is configured with `enableScopedRouting: false`, which means:
|
|
161
|
+
- No host route resolution (`resolve_route()`) is required
|
|
162
162
|
- Schemas are exposed directly based on the `schemas` parameter
|
|
163
163
|
- Perfect for isolated testing without complex domain setup
|
|
164
164
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/playwright-test",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "Constructive Playwright Testing with HTTP server support",
|
|
6
6
|
"main": "index.js",
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
"makage": "^0.3.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@constructive-io/graphql-env": "^3.17.
|
|
39
|
-
"@constructive-io/graphql-server": "^5.1.
|
|
40
|
-
"@constructive-io/graphql-test": "^5.0.
|
|
41
|
-
"@constructive-io/graphql-types": "^3.16.
|
|
38
|
+
"@constructive-io/graphql-env": "^3.17.1",
|
|
39
|
+
"@constructive-io/graphql-server": "^5.1.1",
|
|
40
|
+
"@constructive-io/graphql-test": "^5.0.6",
|
|
41
|
+
"@constructive-io/graphql-types": "^3.16.1",
|
|
42
42
|
"@pgpmjs/types": "^2.36.0",
|
|
43
43
|
"express": "^5.2.1",
|
|
44
|
-
"graphile-test": "^5.0.
|
|
44
|
+
"graphile-test": "^5.0.6",
|
|
45
45
|
"pg": "^8.21.0",
|
|
46
46
|
"pg-cache": "^3.15.3",
|
|
47
47
|
"pgsql-test": "^5.0.5"
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"e2e",
|
|
56
56
|
"integration"
|
|
57
57
|
],
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "ebba3f838664032e6f6adf6c9c6d2b6cdddd994a"
|
|
59
59
|
}
|