From 83602d8f6b0768beb43ba87471a4362a07bf8918 Mon Sep 17 00:00:00 2001 From: Dan Dascalescu Date: Thu, 2 Apr 2026 05:28:30 +0000 Subject: [PATCH] fix(testing): strip relative paths from snapshot test subprocess stderr --- testing/snapshot_test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/snapshot_test.ts b/testing/snapshot_test.ts index a28366eb90d8..523f212e590c 100644 --- a/testing/snapshot_test.ts +++ b/testing/snapshot_test.ts @@ -26,9 +26,9 @@ function formatTestOutput(string: string) { } function formatTestError(string: string) { - // Strip colors and remove "Check file:///workspaces/deno_std/testing/.tmp/test.ts" + // Strip colors and remove "Check " lines // as this is always output to stderr - return stripAnsiCode(string).replace(/^Check file:\/\/(.+)\n/gm, ""); + return stripAnsiCode(string).replace(/^Check .+\n/gm, ""); } function testFnWithTempDir(