How to test S3 image uploading on your project? #43
Labels
enhancement
New feature or enhancement of existing functionality
help wanted
If you can help make progress with this issue, please comment!
question
A question needs to be answered before progress can be made on this issue
starter
A beginner-friendly issue that is a good starting point for a new person
technical
A technical issue that requires understanding of the code, infrastructure or dependencies
How should we test the image uploading functionality on a project?
I can see this nightwatch example on this repo:
https://github.com/dwyl/image-uploads/blob/master/examples/sdk-upload/test/e2e/sdk-upload.test.js
However my concern is that every time you perform this test you are uploading a new file to S3. Unless someone in a team remembers to delete the test files on a regular basis you could end up with a lot of files. This comes as a cost on S3 if it was a large amount of data being stored.
Would it be possible/better to delete the files once they're uploaded? Or can we mock the upload in some way but still test it?
The text was updated successfully, but these errors were encountered: