Cypress · Senior · Question 54 of 76
How do you test file uploads to cloud storage with signed URLs?
- 1Upload real files to production storage in each test
- 2Intercept the upload, assert it, and stub storage replies
- 3Uploads to cloud storage can't be tested
Show the answer
Correct answer: Intercept the upload, assert it, and stub storage replies
Explanation
Stubbing the storage call keeps tests fast and avoids costs; one integration test can cover the real path.