chore: use plain app id in key gen #5126
Annotations
8 errors and 1 warning
Test:
packages/uploadthing/test/sdk.live.test.ts#L64
AssertionError: expected { data: null, …(1) } 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": 1735958804901,
- "name": "foo.txt",
- "size": 3,
- "type": "text/plain",
- "url": StringMatching /^https:\/\/utfs.io\/f\/.+$/,
- },
- "error": null,
+ "data": null,
+ "error": [UploadThingError: Failed to upload file],
}
❯ packages/uploadthing/test/sdk.live.test.ts:64:22
|
Test:
packages/uploadthing/test/sdk.live.test.ts#L99
AssertionError: expected { data: null, …(1) } 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": 1735958805749,
- "name": "foo.txt",
- "size": 3,
- "type": "text/plain",
- "url": StringMatching /^https:\/\/utfs.io\/f\/.+$/,
- },
- "error": null,
+ "data": null,
+ "error": [UploadThingError: Failed to upload file],
}
❯ packages/uploadthing/test/sdk.live.test.ts:99:22
|
Test:
packages/uploadthing/test/sdk.live.test.ts#L129
AssertionError: expected { data: null, …(1) } 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",
- "url": StringMatching /^https:\/\/utfs.io\/f\/.+$/,
- },
- "error": null,
+ "data": null,
+ "error": [UploadThingError: Failed to upload file],
}
❯ packages/uploadthing/test/sdk.live.test.ts:129:22
|
Test:
packages/uploadthing/test/sdk.live.test.ts#L151
TypeError: Cannot read properties of null (reading 'key')
❯ packages/uploadthing/test/sdk.live.test.ts:151:36
|
Test:
packages/uploadthing/test/sdk.live.test.ts#L195
AssertionError: expected { data: null, …(1) } to deeply equal { data: { …(9) }, error: null }
- Expected
+ Received
Object {
- "data": Object {
- "appUrl": StringMatching /^https:\/\/utfs.io\/a\/fr0hfwpst1\/.+$/,
- "customId": "3c336225-7d66-4d04-b1c6-75e5ceeb5360",
- "fileHash": Any<String>,
- "key": StringMatching /.+/,
- "lastModified": 1735958807165,
- "name": "bar.txt",
- "size": 3,
- "type": "text/plain",
- "url": StringMatching /^https:\/\/utfs.io\/f\/.+$/,
- },
- "error": null,
+ "data": null,
+ "error": [UploadThingError: Failed to upload file],
}
❯ packages/uploadthing/test/sdk.live.test.ts:195:22
|
Test:
packages/uploadthing/test/sdk.live.test.ts#L235
TypeError: Cannot destructure property 'key' of 'result.data' as it is null.
❯ packages/uploadthing/test/sdk.live.test.ts:235:15
|
Test:
packages/uploadthing/test/sdk.live.test.ts#L267
TypeError: Cannot read properties of undefined (reading 'key')
❯ packages/uploadthing/test/sdk.live.test.ts:267:65
|
Test
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading