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

Function getCurrentSuite

packages/runner/src/suite.ts:245–250  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

243}
244
245export function getCurrentSuite<ExtraContext = object>(): SuiteCollector<ExtraContext> {
246 const currentSuite = (collectorContext.currentSuite
247 || defaultSuite) as unknown as SuiteCollector<ExtraContext>
248 assert(currentSuite, 'the current suite')
249 return currentSuite
250}
251
252export function createSuiteHooks(): SuiteHooks {
253 return {

Callers 11

beforeAllFunction · 0.90
afterAllFunction · 0.90
beforeEachFunction · 0.90
afterEachFunction · 0.90
aroundAllFunction · 0.90
aroundEachFunction · 0.90
extendMethod · 0.90
overrideMethod · 0.90
withFixturesFunction · 0.90
benchmark.tsFile · 0.90
suite.tsFile · 0.85

Calls 1

assertFunction · 0.70

Tested by

no test coverage detected