Skip to content

Add support for MSW #41

Add support for MSW

Add support for MSW #41

Triggered via pull request May 3, 2024 10:03
@djhidjhi
opened #68
msw
Status Failure
Total duration 48s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 6 warnings
src/Server.spec.ts > Server > handle > should not respond to GET /whatever on non existing collection: src/Server.spec.ts#L263
AssertionError: expected 404 to deeply equal +0 - Expected + Received - 0 + 404 ❯ src/Server.spec.ts:263:36
src/Server.spec.ts > Server > handle > should respond to POST /foo by adding an item to collection foo, even if the collection does not exist: src/Server.spec.ts#L414
AssertionError: expected 404 to deeply equal 201 - Expected + Received - 201 + 404 ❯ src/Server.spec.ts:414:36
src/Server.spec.ts > Server > batch > should return batch response: src/Server.spec.ts#L700
AssertionError: expected '{"foo0":{"code":200,"headers":[{"name…' to deeply equal '{"foo0":{"code":200,"headers":[{"name…' - Expected + Received - {"foo0":{"code":200,"headers":[{"name":"Content-Type","value":"application/json"}],"body":"{\"a\":1,\"id\":0}"},"allbar":{"code":200,"headers":[{"name":"Content-Range","value":"items 0-1/2"},{"name":"Content-Type","value":"application/json"}],"body":"[{\"b\":true,\"id\":0},{\"b\":false,\"id\":1}]"},"baz0":{"code":404,"headers":[],"body":{}},"biz":{"code":200,"headers":[{"name":"Content-Type","value":"application/json"}],"body":"{\"name\":\"biz\"}"}} + {"foo0":{"code":200,"headers":[{"name":"Content-Type","value":"application/json"}],"body":"{\"a\":1,\"id\":0}"},"allbar":{"code":200,"headers":[{"name":"Content-Type","value":"application/json"},{"name":"Content-Range","value":"items 0-1/2"}],"body":"[{\"b\":true,\"id\":0},{\"b\":false,\"id\":1}]"},"baz0":{"code":404,"headers":[{"name":"Content-Type","value":"application/json"}],"body":{}},"biz":{"code":200,"headers":[{"name":"Content-Type","value":"application/json"}],"body":"{\"name\":\"biz\"}"}} ❯ src/Server.spec.ts:700:68
unit-test
Process completed with exit code 2.
unit-test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
unit-test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
typecheck
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
typecheck
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/