feat: support cross-process interception via setupRemoteServer
#2085
ci.yml
on: pull_request
build (18)
49s
build (20)
45s
test (unit) (18)
41s
test (node.js) (18)
51s
test (e2e) (18)
53s
test (browser)
2m 32s
test (react-native)
18s
test (node.js) (20)
49s
Annotations
6 errors and 1 warning
test/node/msw-api/setup-remote-server/life-cycle-event-forwarding.node.test.ts > emits correct events for the request unhandled by either parties:
test/node/msw-api/setup-remote-server/life-cycle-event-forwarding.node.test.ts#L107
AssertionError: expected [ …(4) ] to deeply equal [ …(4) ]
- Expected
+ Received
Array [
Array [
"[request:start] GET http://127.0.0.1:49255/greeting 9517d3798d757",
],
Array [
- "[request:unhandled] GET http://127.0.0.1:49255/greeting 9517d3798d757",
+ "[request:end] GET http://127.0.0.1:49255/greeting 9517d3798d757",
],
Array [
- "[request:end] GET http://127.0.0.1:49255/greeting 9517d3798d757",
+ "[request:unhandled] GET http://127.0.0.1:49255/greeting 9517d3798d757",
],
Array [
"[response:bypass] GET http://127.0.0.1:49255/greeting 9517d3798d757 200 hello",
],
]
❯ test/node/msw-api/setup-remote-server/life-cycle-event-forwarding.node.test.ts:107:35
|
test (node.js) (18)
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 test process:
test/node/msw-api/setup-remote-server/life-cycle-event-forwarding.node.test.ts#L48
AssertionError: expected [ …(4) ] to deeply equal [ …(4) ]
- Expected
+ Received
Array [
Array [
"[request:start] GET https://example.com/resource ecb30cc9e5f3",
],
Array [
- "[request:match] GET https://example.com/resource ecb30cc9e5f3",
+ "[request:end] GET https://example.com/resource ecb30cc9e5f3",
],
Array [
- "[request:end] GET https://example.com/resource ecb30cc9e5f3",
+ "[request:match] GET https://example.com/resource ecb30cc9e5f3",
],
Array [
"[response:mocked] GET https://example.com/resource ecb30cc9e5f3 200 {\"mocked\":true}",
],
]
❯ test/node/msw-api/setup-remote-server/life-cycle-event-forwarding.node.test.ts:48:35
|
test (node.js) (20)
Process completed with exit code 1.
|
test (browser)
The run was canceled by @github-actions[bot].
|
test (browser)
The operation was canceled.
|
test (browser)
No files were found with the provided path: test/browser/test-results. No artifacts will be uploaded.
|