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

Function markTasksAsSkipped

packages/runner/src/run.ts:812–821  ·  view source on GitHub ↗
(suite: Suite, runner: VitestRunner)

Source from the content-addressed store, hash-verified

810}
811
812function markTasksAsSkipped(suite: Suite, runner: VitestRunner) {
813 suite.tasks.forEach((t) => {
814 t.mode = 'skip'
815 t.result = { ...t.result, state: 'skip' }
816 updateTask('test-finished', t, runner)
817 if (t.type === 'suite') {
818 markTasksAsSkipped(t, runner)
819 }
820 })
821}
822
823function markPendingTasksAsSkipped(suite: Suite, runner: VitestRunner, note?: string) {
824 suite.tasks.forEach((t) => {

Callers 1

runSuiteFunction · 0.85

Calls 1

updateTaskFunction · 0.70

Tested by

no test coverage detected