Skip to content

chore: migrate to msw@2 #118

chore: migrate to msw@2

chore: migrate to msw@2 #118

Triggered via pull request May 26, 2024 13:35
@weyertweyert
synchronize #38
chore/msw-v2
Status Failure
Total duration 42s
Billable time 1m
Artifacts

main.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 2 warnings
test/oas/oas-json-schema.test.ts > responds with an empty 200 to a request without explicit 200 response: test/oas/oas-json-schema.test.ts#L141
AssertionError: expected 501 to deeply equal 200 - Expected + Received - 200 + 501 ❯ test/oas/oas-json-schema.test.ts:141:22
test/oas/petstore.test.ts > POST /pet/{petId}: test/oas/petstore.test.ts#L111
AssertionError: expected 501 to deeply equal 200 - Expected + Received - 200 + 501 ❯ test/oas/petstore.test.ts:111:22
test/oas/petstore.test.ts > DELETE /pet/{petId}: test/oas/petstore.test.ts#L124
AssertionError: expected 501 to deeply equal 200 - Expected + Received - 200 + 501 ❯ test/oas/petstore.test.ts:124:22
test/oas/petstore.test.ts > DELETE /user/:username: test/oas/petstore.test.ts#L263
AssertionError: expected 501 to deeply equal 200 - Expected + Received - 200 + 501 ❯ test/oas/petstore.test.ts:263:22
test/traffic/fromTraffic.test.ts > toResponseBody > returns undefined given response with no body: test/traffic/fromTraffic.test.ts#L116
AssertionError: expected Response { status: 200, statusText: 'OK', headers: Headers {}, body: null, bodyUsed: false, ok: true, redirected: false, type: 'default', url: '' } to deeply equal undefined - Expected: undefined + Received: Response { Symbol(realm): Object { "settingsObject": Object {}, }, Symbol(state): Object { "aborted": false, "cacheState": "", "headersList": HeadersList { "cookies": null, Symbol(headers map): Map {}, Symbol(headers map sorted): null, }, "rangeRequested": false, "requestIncludesCredentials": false, "status": 200, "statusText": "OK", "timingAllowPassed": false, "timingInfo": null, "type": "default", "urlList": Array [], }, Symbol(headers): Headers { Symbol(guard): "response", Symbol(headers list): HeadersList { "cookies": null, Symbol(headers map): Map {}, Symbol(headers map sorted): null, }, Symbol(realm): Object { "settingsObject": Object {}, }, }, } ❯ test/traffic/fromTraffic.test.ts:116:51
test/traffic/fromTraffic.test.ts > toResponseBody > returns a decoded text body given a base64-encoded response body: src/fromTraffic/utils/decodeBase64String.ts#L2
InvalidCharacterError: Invalid character ❯ atob node:buffer:1269:13 ❯ Module.decodeBase64String src/fromTraffic/utils/decodeBase64String.ts:2:24 ❯ test/traffic/fromTraffic.test.ts:122:26 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 5, INDEX_SIZE_ERR: 1, DOMSTRING_SIZE_ERR: 2, HIERARCHY_REQUEST_ERR: 3, WRONG_DOCUMENT_ERR: 4, INVALID_CHARACTER_ERR: 5, NO_DATA_ALLOWED_ERR: 6, NO_MODIFICATION_ALLOWED_ERR: 7, NOT_FOUND_ERR: 8, NOT_SUPPORTED_ERR: 9, INUSE_ATTRIBUTE_ERR: 10, INVALID_STATE_ERR: 11, SYNTAX_ERR: 12, INVALID_MODIFICATION_ERR: 13, NAMESPACE_ERR: 14, INVALID_ACCESS_ERR: 15, VALIDATION_ERR: 16, TYPE_MISMATCH_ERR: 17, SECURITY_ERR: 18, NETWORK_ERR: 19, ABORT_ERR: 20, URL_MISMATCH_ERR: 21, QUOTA_EXCEEDED_ERR: 22, TIMEOUT_ERR: 23, INVALID_NODE_TYPE_ERR: 24, DATA_CLONE_ERR: 25 }
build
Process completed with exit code 1.
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: styfle/[email protected], actions/checkout@v3, actions/setup-node@v3, pnpm/action-setup@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build
The following actions uses node12 which is deprecated and will be forced to run on node16: styfle/[email protected]. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/