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
- function test(name, f)Adds a test case in the current scope.