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

Function todoAllTasks

packages/runner/src/utils/collect.ts:147–156  ·  view source on GitHub ↗
(suite: Suite)

Source from the content-addressed store, hash-verified

145 })
146}
147function todoAllTasks(suite: Suite) {
148 suite.tasks.forEach((t) => {
149 if (t.mode === 'run' || t.mode === 'queued') {
150 t.mode = 'todo'
151 if (t.type === 'suite') {
152 todoAllTasks(t)
153 }
154 }
155 })
156}
157
158function checkAllowOnly(task: TaskBase, allowOnly?: boolean) {
159 if (allowOnly) {

Callers 1

traverseSuiteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected