From 549186e395c70228c32877cf21f70375218cd035 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Wed, 24 Aug 2022 15:54:01 +0200 Subject: [PATCH] Error locations are already converted from URLs to paths by Jest --- src/worker-runner.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/worker-runner.js b/src/worker-runner.js index 8147214..6dd8db4 100644 --- a/src/worker-runner.js +++ b/src/worker-runner.js @@ -86,11 +86,6 @@ export default async function run({ await runTestBlock(tests, hasFocusedTests, testNamePatternRE, results, stats); stats.end = performance.now(); - snapshotState._inlineSnapshots.forEach(({ frame }) => { - // When using native ESM, errors have a URL location. - // Jest expects paths. - frame.file = fileURLToPath(frame.file); - }); snapshotState.save(); // Restore the project-level serializers, so that serializers