MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / flushCoverageShard

Function flushCoverageShard

test/fixtures.js:28–32  ·  view source on GitHub ↗
(accMap)

Source from the content-addressed store, hash-verified

26 * per worker at teardown; global-teardown.js reads all shards and merges.
27 */
28export function flushCoverageShard(accMap) {
29 if (!accMap) return
30 const shard = `worker-${process.pid}-${Math.random().toString(36).slice(2, 10)}.json`
31 fs.writeFileSync(path.join(COVERAGE_RAW_DIR, shard), JSON.stringify(accMap.toJSON()))
32}
33
34const BLANK_PAGE = [
35 '<!DOCTYPE html><html>',

Callers 2

makeHtmxTestFunction · 0.90
fixtures.jsFile · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected