Skip to content

Files

Latest commit

 

History

History
22 lines (16 loc) · 475 Bytes

prefer-todo.md

File metadata and controls

22 lines (16 loc) · 475 Bytes

Pattern: Empty test case

Issue: -

Description

Empty test cases or test cases without implementation should use test.todo() to make them more visible in test summaries and clearly indicate pending work.

Examples

Example of incorrect code:

test("future test");
test("empty test", () => {});
test.skip("skipped empty test", () => {});

Example of correct code:

test.todo("future test");
test.todo("needs implementation");