Skip to content

Commit 0a7b71c

Browse files
authored
Use printUnifiedDiff for test (microsoft#1786)
Co-authored-by: saschanaz <[email protected]>
1 parent 68a3cd1 commit 0a7b71c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as fs from "fs";
22
import child_process from "child_process";
3-
import { printInlineDiff } from "print-diff";
3+
import { printUnifiedDiff } from "print-diff";
44
import { fileURLToPath } from "url";
55

66
const baselineFolder = new URL("../baselines/", import.meta.url);
@@ -65,7 +65,7 @@ function compareToBaselines(baselineFolder: URL, outputFolder: URL) {
6565
console.error(
6666
`Test failed: '${file}' is different from baseline file.`,
6767
);
68-
printInlineDiff(baseline ?? "", generated ?? "");
68+
printUnifiedDiff(baseline ?? "", generated ?? "");
6969
return false;
7070
}
7171

0 commit comments

Comments
 (0)