We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7824fbc commit b67f6ecCopy full SHA for b67f6ec
src/harness/fakes.ts
@@ -476,7 +476,9 @@ namespace fakes {
476
assertDiagnosticMessages(...expectedDiagnostics: ExpectedDiagnostic[]) {
477
const actual = this.diagnostics.slice().map(d => d.messageText as string);
478
const expected = expectedDiagnostics.map(expectedDiagnosticToText);
479
- assert.deepEqual(actual, expected, "Diagnostic arrays did not match");
+ assert.deepEqual(actual, expected, `Diagnostic arrays did not match:
480
+Actual: ${JSON.stringify(actual, /*replacer*/ undefined, " ")}
481
+Expected: ${JSON.stringify(expected, /*replacer*/ undefined, " ")}`);
482
}
483
484
printDiagnostics(header = "== Diagnostics ==") {
0 commit comments