Skip to content

fix error logic

fix error logic #154

Triggered via push March 17, 2025 12:37
Status Failure
Total duration 34s
Artifacts 1

ci.yml

on: push
Matrix: vitest
coverage
0s
coverage
release
0s
release
Fit to window
Zoom out
Zoom in

Annotations

20 errors
test/unit/mock-http.test.ts > Mocked API tests > should time out createAssembly with a custom timeout: test/unit/mock-http.test.ts#L30
AssertionError: expected error to be instance of TimeoutError - Expected: [Function TimeoutError] + Received: [ApiError: API error] ❯ test/unit/mock-http.test.ts:30:5
test/unit/mock-http.test.ts > Mocked API tests > should time out other requests with a custom timeout: test/unit/mock-http.test.ts#L38
AssertionError: expected error to be instance of TimeoutError - Expected: [Function TimeoutError] + Received: [ApiError: API error] ❯ test/unit/mock-http.test.ts:38:5
test/unit/mock-http.test.ts > Mocked API tests > should fail on error with error code: test/unit/mock-http.test.ts#L97
AssertionError: expected error to match asymmetric matcher - Expected + Received - ObjectContaining { - "code": "INVALID_FILE_META_DATA", - "message": "API error (HTTP 400) INVALID_FILE_META_DATA: Invalid file metadata", - "rawMessage": "Invalid file metadata", - } + [ApiError: API error] ❯ test/unit/mock-http.test.ts:97:5
test/unit/mock-http.test.ts > Mocked API tests > should return informative errors: test/unit/mock-http.test.ts#L117
AssertionError: expected error to match asymmetric matcher - Expected + Received - ObjectContaining { - "assemblyId": "123", - "message": "API error (HTTP 400) INVALID_FILE_META_DATA: Invalid file metadata https://api2-oltu.transloadit.com/assemblies/foo", - } + [ApiError: API error] ❯ test/unit/mock-http.test.ts:117:5
test/unit/mock-http.test.ts > Mocked API tests > should not retry on RATE_LIMIT_REACHED if maxRetries is 0: test/unit/mock-http.test.ts#L198
AssertionError: expected error to match asymmetric matcher - Expected + Received - ObjectContaining { - "code": "RATE_LIMIT_REACHED", - "message": "API error (HTTP 429) RATE_LIMIT_REACHED: Request limit reached", - } + [ApiError: API error] ❯ test/unit/mock-http.test.ts:198:5
vitest (18)
Process completed with exit code 1.
vitest (20)
The job was canceled because "_18" failed.
test/unit/mock-http.test.ts > Mocked API tests > should time out createAssembly with a custom timeout: test/unit/mock-http.test.ts#L30
AssertionError: expected error to be instance of TimeoutError - Expected: [Function TimeoutError] + Received: [ApiError: API error] ❯ test/unit/mock-http.test.ts:30:5
test/unit/mock-http.test.ts > Mocked API tests > should time out other requests with a custom timeout: test/unit/mock-http.test.ts#L38
AssertionError: expected error to be instance of TimeoutError - Expected: [Function TimeoutError] + Received: [ApiError: API error] ❯ test/unit/mock-http.test.ts:38:5
test/unit/mock-http.test.ts > Mocked API tests > should fail on error with error code: test/unit/mock-http.test.ts#L97
AssertionError: expected error to match asymmetric matcher - Expected + Received - ObjectContaining { - "code": "INVALID_FILE_META_DATA", - "message": "API error (HTTP 400) INVALID_FILE_META_DATA: Invalid file metadata", - "rawMessage": "Invalid file metadata", - } + [ApiError: API error] ❯ test/unit/mock-http.test.ts:97:5
test/unit/mock-http.test.ts > Mocked API tests > should return informative errors: test/unit/mock-http.test.ts#L117
AssertionError: expected error to match asymmetric matcher - Expected + Received - ObjectContaining { - "assemblyId": "123", - "message": "API error (HTTP 400) INVALID_FILE_META_DATA: Invalid file metadata https://api2-oltu.transloadit.com/assemblies/foo", - } + [ApiError: API error] ❯ test/unit/mock-http.test.ts:117:5
test/unit/mock-http.test.ts > Mocked API tests > should not retry on RATE_LIMIT_REACHED if maxRetries is 0: test/unit/mock-http.test.ts#L198
AssertionError: expected error to match asymmetric matcher - Expected + Received - ObjectContaining { - "code": "RATE_LIMIT_REACHED", - "message": "API error (HTTP 429) RATE_LIMIT_REACHED: Request limit reached", - } + [ApiError: API error] ❯ test/unit/mock-http.test.ts:198:5
vitest (20)
Process completed with exit code 1.
vitest (22)
The job was canceled because "_18" failed.
test/unit/mock-http.test.ts > Mocked API tests > should time out createAssembly with a custom timeout: test/unit/mock-http.test.ts#L30
AssertionError: expected error to be instance of TimeoutError - Expected: [Function TimeoutError] + Received: [ApiError: API error] ❯ test/unit/mock-http.test.ts:30:5
test/unit/mock-http.test.ts > Mocked API tests > should time out other requests with a custom timeout: test/unit/mock-http.test.ts#L38
AssertionError: expected error to be instance of TimeoutError - Expected: [Function TimeoutError] + Received: [ApiError: API error] ❯ test/unit/mock-http.test.ts:38:5
test/unit/mock-http.test.ts > Mocked API tests > should fail on error with error code: test/unit/mock-http.test.ts#L97
AssertionError: expected error to match asymmetric matcher - Expected + Received - ObjectContaining { - "code": "INVALID_FILE_META_DATA", - "message": "API error (HTTP 400) INVALID_FILE_META_DATA: Invalid file metadata", - "rawMessage": "Invalid file metadata", - } + [ApiError: API error] ❯ test/unit/mock-http.test.ts:97:5
test/unit/mock-http.test.ts > Mocked API tests > should return informative errors: test/unit/mock-http.test.ts#L117
AssertionError: expected error to match asymmetric matcher - Expected + Received - ObjectContaining { - "assemblyId": "123", - "message": "API error (HTTP 400) INVALID_FILE_META_DATA: Invalid file metadata https://api2-oltu.transloadit.com/assemblies/foo", - } + [ApiError: API error] ❯ test/unit/mock-http.test.ts:117:5
test/unit/mock-http.test.ts > Mocked API tests > should not retry on RATE_LIMIT_REACHED if maxRetries is 0: test/unit/mock-http.test.ts#L198
AssertionError: expected error to match asymmetric matcher - Expected + Received - ObjectContaining { - "code": "RATE_LIMIT_REACHED", - "message": "API error (HTTP 429) RATE_LIMIT_REACHED: Request limit reached", - } + [ApiError: API error] ❯ test/unit/mock-http.test.ts:198:5
vitest (22)
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size Digest
package
517 KB
sha256:f5b2f604051ecfabc13e3a61a9e111fa4182eca2b3c7ed73edb7e7a83a2668e0