Skip to content

fix: typo (#1156) #5269

fix: typo (#1156)

fix: typo (#1156) #5269

Triggered via push February 23, 2025 00:15
Status Failure
Total duration 1m 39s
Artifacts

ci.yaml

on: push
Matrix: analyze-bundle
bundle-analyze-result
0s
bundle-analyze-result
Fit to window
Zoom out
Zoom in

Annotations

5 errors
packages/uploadthing/test/sdk.live.test.ts > smoke test with live api > should upload a file: packages/uploadthing/test/sdk.live.test.ts#L80
AssertionError: expected { data: null, error: { …(3) } } to deeply equal { Object (data, error) } - Expected + Received Object { - "data": Object { - "appUrl": StringMatching /^https:\/\/utfs.io\/a\/fr0hfwpst1\/.+$/, - "customId": null, - "fileHash": Any<String>, - "key": StringMatching /.+/, - "lastModified": 1740269792495, - "name": "foo.txt", - "size": 3, - "type": "text/plain", - "ufsUrl": StringMatching /^https:\/\/fr0hfwpst1.ufs.sh\/f\/.+$/, - "url": StringMatching /^https:\/\/utfs.io\/f\/.+$/, + "data": null, + "error": Object { + "code": "UPLOAD_FAILED", + "data": undefined, + "message": "Failed to upload file", }, - "error": null, } ❯ packages/uploadthing/test/sdk.live.test.ts:80:22
packages/uploadthing/test/sdk.live.test.ts > smoke test with live api > should upload a private file: packages/uploadthing/test/sdk.live.test.ts#L116
AssertionError: expected { data: null, error: { …(3) } } to deeply equal { Object (data, error) } - Expected + Received Object { - "data": Object { - "appUrl": StringMatching /^https:\/\/utfs.io\/a\/fr0hfwpst1\/.+$/, - "customId": null, - "fileHash": Any<String>, - "key": StringMatching /.+/, - "lastModified": 1740269795138, - "name": "foo.txt", - "size": 3, - "type": "text/plain", - "ufsUrl": StringMatching /^https:\/\/fr0hfwpst1.ufs.sh\/f\/.+$/, - "url": StringMatching /^https:\/\/utfs.io\/f\/.+$/, + "data": null, + "error": Object { + "code": "UPLOAD_FAILED", + "data": undefined, + "message": "Failed to upload file", }, - "error": null, } ❯ packages/uploadthing/test/sdk.live.test.ts:116:22
packages/uploadthing/test/sdk.live.test.ts > smoke test with live api > should upload a file from a url: packages/uploadthing/test/sdk.live.test.ts#L147
AssertionError: expected { data: null, error: { …(3) } } to deeply equal { Object (data, error) } - Expected + Received Object { - "data": Object { - "appUrl": StringMatching /^https:\/\/utfs.io\/a\/fr0hfwpst1\/.+$/, - "customId": null, - "fileHash": Any<String>, - "key": StringMatching /.+/, - "lastModified": Any<Number>, - "name": "favicon.ico", - "size": Any<Number>, - "type": "image/vnd.microsoft.icon", - "ufsUrl": StringMatching /^https:\/\/fr0hfwpst1.ufs.sh\/f\/.+$/, - "url": StringMatching /^https:\/\/utfs.io\/f\/.+$/, + "data": null, + "error": Object { + "code": "UPLOAD_FAILED", + "data": undefined, + "message": "Failed to upload file", }, - "error": null, } ❯ packages/uploadthing/test/sdk.live.test.ts:147:22
packages/uploadthing/test/sdk.live.test.ts > smoke test with live api > should rename a file with fileKey: packages/uploadthing/test/sdk.live.test.ts#L170
TypeError: Cannot read properties of null (reading 'key') ❯ packages/uploadthing/test/sdk.live.test.ts:170:36
build
Process completed with exit code 1.