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

Function onInit

test/coverage-test/test/threshold-100.test.ts:22–27  ·  view source on GitHub ↗
(ctx)

Source from the content-addressed store, hash-verified

20 'verbose',
21 {
22 onInit(ctx) {
23 ctx.getRootProject().provide('coverage', {
24 provider: ctx.config.coverage.provider,
25 thresholds: (ctx.config.coverage as any).thresholds,
26 })
27 },
28 },
29 ],
30 }, { throwOnError: false })

Callers

nothing calls this directly

Calls 1

getRootProjectMethod · 0.80

Tested by

no test coverage detected