MCPcopy
hub / github.com/vitest-dev/vitest / writeBlob

Function writeBlob

packages/vitest/src/node/reporters/blob.ts:101–110  ·  view source on GitHub ↗
(content: MergeReport, filename: string)

Source from the content-addressed store, hash-verified

99}
100
101export async function writeBlob(content: MergeReport, filename: string): Promise<void> {
102 const report = stringify(content)
103
104 const dir = dirname(filename)
105 if (!existsSync(dir)) {
106 await mkdir(dir, { recursive: true })
107 }
108
109 await writeFile(filename, report, 'utf-8')
110}
111
112export async function readBlobs(
113 currentVersion: string,

Callers 2

onTestRunEndMethod · 0.85

Calls 2

stringifyFunction · 0.85
writeFileFunction · 0.85

Tested by

no test coverage detected