Docs (4.0.0)
function test function

skip

Adds a test case that will be skipped.

static

skip(name: string, f: (test: TestCase) => void | Promise<void>): void

Notes

  • The test function won’t be called at all.
  • Skipped tests aren’t considered failures in the overall test results.

Example

// define a test that doesn't run:
describe("Something", () => {
  test.skip("Not run", () => {
    // ... this will not be run
  })
});

Related