Skip to content

Commit

Permalink
Restore proper file check
Browse files Browse the repository at this point in the history
  • Loading branch information
worldomonation committed Aug 30, 2021
1 parent 0d0a53b commit 2f2672f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/calypso-e2e/src/media-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export async function createTestFile(
// Note, if sourcePath is not found use console.error instead of throw:
// https://github.com/facebook/jest/issues/8688
try {
await fs.access( '' );
await fs.access( sourcePath );
} catch {
console.error( `Source file ${ sourcePath } not found on disk.` );
throw new Error();
Expand Down

0 comments on commit 2f2672f

Please sign in to comment.