perf: allow the downloader to support custom return types #1686
Annotations
4 errors and 3 warnings
packages/effects/request/src/request-client/modules/downloader.test.ts > fileDownloader > should download a file and return a Blob:
packages/effects/request/src/request-client/modules/downloader.test.ts#L32
AssertionError: expected "spy" to be called with arguments: [ 'https://example.com/file', …(1) ]
Received:
1st spy call:
Array [
"https://example.com/file",
Object {
+ "responseReturn": "raw",
"responseType": "blob",
},
]
Number of calls: 1
❯ packages/effects/request/src/request-client/modules/downloader.test.ts:32:35
|
packages/effects/request/src/request-client/modules/downloader.test.ts > fileDownloader > should merge provided config with default config:
packages/effects/request/src/request-client/modules/downloader.test.ts#L51
AssertionError: expected "spy" to be called with arguments: [ 'https://example.com/file', …(1) ]
Received:
1st spy call:
Array [
"https://example.com/file",
Object {
- "headers": Object {
- "Custom-Header": "value",
- },
+ "responseReturn": "raw",
"responseType": "blob",
},
]
2nd spy call:
Array [
"https://example.com/file",
Object {
"headers": Object {
"Custom-Header": "value",
},
+ "responseReturn": "raw",
"responseType": "blob",
},
]
Number of calls: 2
❯ packages/effects/request/src/request-client/modules/downloader.test.ts:51:35
|
Test (ubuntu-latest)
Process completed with exit code 1.
|
Test (windows-latest)
The job was canceled because "ubuntu-latest" failed.
|
Test (ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Check (ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Lint (ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|