Skip to content

Commit a49aab4

Browse files
Dan Dascalescusandbox
authored andcommitted
fix(testing): strip relative paths from snapshot test subprocess stderr
1 parent 1cd63ca commit a49aab4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

testing/snapshot_test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ function formatTestOutput(string: string) {
2626
}
2727

2828
function formatTestError(string: string) {
29-
// Strip colors and remove "Check file:///workspaces/deno_std/testing/.tmp/test.ts"
29+
// Strip colors and remove "Check <path>" lines
3030
// as this is always output to stderr
31-
return stripAnsiCode(string).replace(/^Check file:\/\/(.+)\n/gm, "");
31+
return stripAnsiCode(string).replace(/^Check .+\n/gm, "");
3232
}
3333

3434
function testFnWithTempDir(

0 commit comments

Comments
 (0)