Skip to content

Commit fbbc25d

Browse files
committed
Add expected issue ansi to test expectation
1 parent ca86f7a commit fbbc25d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/integration-tests/testexplorer/TestExplorerIntegration.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,8 @@ suite("Test Explorer Suite", function () {
436436
let xcTestFailureMessage: string;
437437

438438
beforeEach(() => {
439+
const suffix = process.platform === "win32" ? "\x1b[0K" : "";
440+
439441
// From 5.7 to 5.10 running with the --parallel option dumps the test results out
440442
// to the console with no newlines, so it isn't possible to distinguish where errors
441443
// begin and end. Consequently we can't record them, and so we manually mark them
@@ -444,7 +446,7 @@ suite("Test Explorer Suite", function () {
444446
runProfile === TestKind.parallel &&
445447
!workspaceContext.toolchain.hasMultiLineParallelTestOutput
446448
? "failed"
447-
: "failed - oh no";
449+
: `failed - oh no${suffix}`;
448450
});
449451

450452
suite(runProfile, () => {

0 commit comments

Comments
 (0)