Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1a0b3b2

Browse files
committedJul 26, 2023
revert to log
1 parent 39c7dba commit 1a0b3b2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎test/common/assertSnapshot.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ async function assertSnapshot(actual, filename = process.argv[1]) {
3939
expected = await fs.readFile(snapshot, 'utf8');
4040
} catch (e) {
4141
if (e.code === 'ENOENT') {
42-
await fs.writeFile(snapshot, actual);
43-
return;
42+
console.log(
43+
'Snapshot file does not exist. You can create a new one by running the test with NODE_REGENERATE_SNAPSHOTS=1',
44+
);
4445
}
4546
throw e;
4647
}

0 commit comments

Comments
 (0)
Please sign in to comment.