Skip to content

Commit e5949d2

Browse files
lishaduckjfmengels
authored andcommitted
fix: add newlines between recorded snapshots
We have to use `process.stdout.write` in compare because we need to write the status afterward. However, we never write a status in record, so the lines get scrunched up.
1 parent d59fa47 commit e5949d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/run.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const runAndRecord = async (title, args, file, input) => {
111111
const cmd = $({halt: true, input})`${BIN} ${fullArgs}`.nothrow();
112112
const censoredCommand = cmd.cmd.replace(TEST_ARGS_REGEX, '');
113113

114-
process.stdout.write(
114+
console.log(
115115
`\u001B[33m- ${title}\u001B[0m: \u001B[34m ${censoredCommand}\u001B[0m`
116116
);
117117

0 commit comments

Comments
 (0)