We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c590239 commit 631785aCopy full SHA for 631785a
1 file changed
spec/mocks/s3adapter.js
@@ -16,7 +16,12 @@ function getMockS3Adapter(options) {
16
17
const objects = {};
18
19
+ // Preserve original client config so that @aws-sdk/lib-storage Upload
20
+ // can access client.config.requestHandler and other required properties.
21
+ const originalConfig = s3._s3Client.config;
22
+
23
s3._s3Client = {
24
+ config: originalConfig,
25
// @ts-ignore
26
send: command => {
27
if (command instanceof PutObjectCommand) {
0 commit comments