MCPcopy
hub / github.com/vitest-dev/vitest / run-dynamic-coverage.test.ts

File run-dynamic-coverage.test.ts

test/coverage-test/test/run-dynamic-coverage.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { expect } from 'vitest'
2import { cleanupCoverageJson, readCoverageMap, runVitest, test } from '../utils'
3
4test('enableCoverage() collects coverage after being called', async () => {

Callers

nothing calls this directly

Calls 7

cleanupCoverageJsonFunction · 0.90
runVitestFunction · 0.90
readCoverageMapFunction · 0.90
enableCoverageMethod · 0.80
rerunFilesMethod · 0.80
disableCoverageMethod · 0.80
testFunction · 0.50

Tested by

no test coverage detected