Skip to content

Commit

Permalink
Error locations are already converted from URLs to paths by Jest (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Aug 27, 2022
1 parent c503887 commit fdeb841
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/worker-runner.js
Expand Up @@ -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
Expand Down

0 comments on commit fdeb841

Please sign in to comment.