Skip to content

Commit

Permalink
fix: prevent crashes for missing screenshotsUrl
Browse files Browse the repository at this point in the history
* fix: Spec not found by Cypress if not relative url

* fix: prevent crashes for missing screenshots

---------

Co-authored-by: Andrew Goldis <agoldis@gmail.com>
Co-authored-by: Andrew Goldis <agoldis@users.noreply.github.com>
  • Loading branch information
3 people committed Apr 4, 2023
1 parent 0aadfea commit 3cd4cbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cypress-cloud/lib/artifacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export async function uploadArtifacts({
)(videoPath, videoUploadUrl);
}
// upload screenshots
if (screenshotUploadUrls.length) {
if (screenshotUploadUrls && screenshotUploadUrls.length) {
await Promise.all(
screenshots.map((screenshot) => {
const url = screenshotUploadUrls.find(
Expand Down

0 comments on commit 3cd4cbc

Please sign in to comment.