Skip to content
masterclass Buddy

Vitest · Function

test.skip

test.skip keeps a test in the file but prevents Vitest from running it. Use test.skipIf when a condition should decide whether the test is skipped.

Last updated

Syntax

test.skip(name: string | Function, body?: () => unknown, timeout?: number): void

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • test
  • it.skip
  • test.skipIf
  • test.runIf
  • test.only
  • test.todo
  • test.concurrent

Source: Test | Vitest. Checked 2026-11-03.