File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
test/integration-tests/testexplorer Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ import { TestKind } from "../../../src/TestExplorer/TestKind";
2121import { WorkspaceContext } from "../../../src/WorkspaceContext" ;
2222import { globalWorkspaceContextPromise } from "../extension.test" ;
2323import { testAssetUri } from "../../fixtures" ;
24+ // eslint-disable-next-line @typescript-eslint/no-require-imports
25+ import stripAnsi = require( "strip-ansi" ) ;
2426
2527/**
2628 * Sets up a test that leverages the TestExplorer, returning the TestExplorer,
@@ -131,8 +133,8 @@ export function assertTestResults(
131133 . map ( ( { test, message } ) => ( {
132134 test : test . id ,
133135 issues : Array . isArray ( message )
134- ? message . map ( ( { message } ) => message )
135- : [ ( message as vscode . TestMessage ) . message ] ,
136+ ? message . map ( ( { message } ) => stripAnsi ( message . toString ( ) ) )
137+ : [ stripAnsi ( ( message as vscode . TestMessage ) . message . toString ( ) ) ] ,
136138 } ) )
137139 . sort ( ) ,
138140 skipped : testRun . runState . skipped . map ( ( { id } ) => id ) . sort ( ) ,
You can’t perform that action at this time.
0 commit comments