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

Function isTestCase

packages/runner/src/utils/tasks.ts:5–7  ·  view source on GitHub ↗
(s: Task)

Source from the content-addressed store, hash-verified

3import { toArray } from '@vitest/utils/helpers'
4
5export function isTestCase(s: Task): s is Test {
6 return s.type === 'test'
7}
8
9export function getTests(suite: Arrayable<Task>): Test[] {
10 const tests: Test[] = []

Callers 7

testsCollectorFunction · 0.90
createOrUpdateNodeTaskFunction · 0.90
createOrUpdateNodeFunction · 0.90
getTestsFunction · 0.85
getTasksFunction · 0.85
hasTestsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected