feat: support cross-process interception via setupRemoteServer
#2080
ci.yml
on: pull_request
build (18)
35s
build (20)
40s
test (unit) (18)
40s
test (node.js) (18)
40s
test (e2e) (18)
1m 8s
test (browser)
48s
test (react-native)
23s
test (node.js) (20)
47s
Annotations
3 errors and 1 warning
test (browser)
Process completed with exit code 1.
|
test/node/msw-api/setup-remote-server/life-cycle-event-forwarding.node.test.ts > emits correct events for the request handled in the remote process:
test/node/msw-api/setup-remote-server/life-cycle-event-forwarding.node.test.ts#L131
AssertionError: expected [ …(4) ] to deeply equal [ …(4) ]
- Expected
+ Received
Array [
Array [
"[request:start] GET https://example.com/resource 41959124b5f5f",
],
Array [
"[request:match] GET https://example.com/resource 41959124b5f5f",
],
Array [
- "[request:end] GET https://example.com/resource 41959124b5f5f",
+ "[response:mocked] GET https://example.com/resource 41959124b5f5f 200 [1,2,3]",
],
Array [
- "[response:mocked] GET https://example.com/resource 41959124b5f5f 200 [1,2,3]",
+ "[request:end] GET https://example.com/resource 41959124b5f5f",
],
]
❯ test/node/msw-api/setup-remote-server/life-cycle-event-forwarding.node.test.ts:131:35
|
test (node.js) (20)
Process completed with exit code 1.
|
test (browser)
No files were found with the provided path: test/browser/test-results. No artifacts will be uploaded.
|