feat: support cross-process interception via setupRemoteServer
#2045
ci.yml
on: pull_request
Matrix: build
test (unit)
39s
test (browser)
5m 5s
test (react-native)
22s
Matrix: test (node.js)
Annotations
14 errors
test (unit):
src/node/SetupServerApi.ts#L113
Unexpected console statement
|
test (unit):
src/node/SetupServerApi.ts#L138
Unexpected console statement
|
test (unit):
src/node/SetupServerApi.ts#L144
Unexpected console statement
|
test (unit):
src/node/setupRemoteServer.ts#L337
Unexpected console statement
|
test (unit):
src/node/setupRemoteServer.ts#L351
Unexpected console statement
|
test (unit):
src/node/setupRemoteServer.ts#L375
Unexpected console statement
|
test (unit)
Process completed with exit code 1.
|
test/node/msw-api/setup-remote-server/remote-boundary.test.ts > uses initial handlers if the boundary has no overrides:
test/node/msw-api/setup-remote-server/utils.ts#L41
Error: Failed to spawn a test Node app (exit code: 1)
❯ ChildProcess.<anonymous> test/node/msw-api/setup-remote-server/utils.ts:41:11
|
test/node/msw-api/setup-remote-server/remote-boundary.test.ts > uses runtime request handlers declared in the boundary:
test/node/msw-api/setup-remote-server/utils.ts#L41
Error: Failed to spawn a test Node app (exit code: 1)
❯ ChildProcess.<anonymous> test/node/msw-api/setup-remote-server/utils.ts:41:11
|
test/node/msw-api/setup-remote-server/response.body.test.ts:
test/node/msw-api/setup-remote-server/utils.ts#L160
TypeError: Cannot read properties of null (reading 'send')
❯ TestNodeApp.close test/node/msw-api/setup-remote-server/utils.ts:160:13
❯ test/node/msw-api/setup-remote-server/response.body.test.ts:20:17
|
test/node/msw-api/setup-remote-server/use.node.test.ts > returns a mocked response from the matching runtime request handler:
test/node/msw-api/setup-remote-server/use.node.test.ts#L44
AssertionError: expected [ 1, 2, 3 ] to deeply equal { mocked: true }
- Expected:
Object {
"mocked": true,
}
+ Received:
Array [
1,
2,
3,
]
❯ test/node/msw-api/setup-remote-server/use.node.test.ts:44:16
|
test (node.js) (18)
Process completed with exit code 1.
|
test/node/msw-api/setup-remote-server/response.body.test.ts:
test/node/msw-api/setup-remote-server/utils.ts#L160
TypeError: Cannot read properties of null (reading 'send')
❯ TestNodeApp.close test/node/msw-api/setup-remote-server/utils.ts:160:13
❯ test/node/msw-api/setup-remote-server/response.body.test.ts:20:17
|
test (node.js) (20)
Process completed with exit code 1.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
playwright-report
|
51.9 KB |
|