Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions testing/snapshot_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
}

function formatTestError(string: string) {
// Strip colors and remove "Check file:///workspaces/deno_std/testing/.tmp/test.ts"
// Strip colors and remove "Check <path>" 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(
Expand Down Expand Up @@ -326,7 +326,7 @@
});
`);

const { snapshot } = await import(toFileUrl(snapshotFilePath).toString());

Check warning on line 329 in testing/snapshot_test.ts

View workflow job for this annotation

GitHub Actions / test (canary, ubuntu-latest)

unable to analyze dynamic import

await assertSnapshot(t, snapshot[`${snapshotName} 1`]);
await assertSnapshot(t, formatTestOutput(result.output));
Expand Down
Loading