MCPcopy Create free account
hub / github.com/denoland/std / formatTestError

Function formatTestError

testing/snapshot_test.ts:32–36  ·  view source on GitHub ↗
(string: string)

Source from the content-addressed store, hash-verified

30}
31
32function formatTestError(string: string) {
33 // Strip colors and remove "Check <path>" lines
34 // as this is always output to stderr
35 return stripAnsiCode(string).replace(/^Check .+\n/gm, "");
36}
37
38function testFnWithTempDir(
39 fn: (t: Deno.TestContext, tempDir: string) => Promise<void>,

Callers 2

snapshot_test.tsFile · 0.85
assertNoErrorFunction · 0.85

Calls 1

stripAnsiCodeFunction · 0.90

Tested by

no test coverage detected