mock-aws-s3
mock-aws-s3 copied to clipboard
Library to mock the AWS SDK for Node.js
# Introduction This PR refactors code to TypeScript. JavaScript files have been transformed to TypeScript, and testing is done with Jest instead of Grunt, which is deprecated. With TypeScript we...
When an object doesn't exist, `getObject` returns an object with the requisite properties, but it's not an Error object. This makes debugging more difficult (since there's no `stack` property), breaks...
Relevant code from `getObject`: https://github.com/MathieuLoutre/mock-aws-s3/blob/6b5aa02d2f4c902db14a1cfd2e03ce0a10204594/lib/mock.js#L312-L314 Ignoring the fact that this probably shouldn't be doing synchronous I/O (if not, then why isn't readFileSync being called instead of the async variant?), the...
Hi, I discovered this library and it's really nice but I encountering a problem with listObjects and listObjectsV2 methods. I don't have same responses that aws sdk. I just want...
I'm running v 4.0.1 copyObject is returning /tmp/buckets///key Code: const copyObject = s3 => sourceBucket => outputBucket => ( oldKey, newKey) => { ``` const CopySource = `/${sourceBucket}/${oldKey}`; const params...
Currently when a readable stream passed into the `Body` finishes, the one call back with only a boolean is fired: https://github.com/MathieuLoutre/mock-aws-s3/blob/6b5aa02d2f4c902db14a1cfd2e03ce0a10204594/lib/mock.js#L487 this should return the location, key and bucket just...
waitFor
Is there interest in adding `waitFor`? http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#waitFor-property
Hi again After doing the work for createBucket, the simple version, I noticed that there are at least some tests which are only testing for the correct, direct use-case. I...
I have noticed that ```listObjectsV2``` does not return ```NextContinuationToken``` which is required when iterating through larger sets of objects on S3. The response looks like this: ```javascript { Contents: [...
Bumps [minimist](https://github.com/minimistjs/minimist) from 1.2.5 to 1.2.8. Changelog Sourced from minimist's changelog. v1.2.8 - 2023-02-09 Merged [Fix] Fix long option followed by single dash [#17](https://github.com/minimistjs/minimist/issues/17) [Tests] Remove duplicate test [#12](https://github.com/minimistjs/minimist/issues/12) [Fix]...