Skip to main content
✏️ Code CompletionQA Testing & QA Hard+35 XP

Custom Matcher

Complete to extend Jest with a custom matcher.

✏️ Fill in the blank
expect.___({ toBePositive(received) { return { pass: received > 0, message: () => 'Expected positive' }; } });

✏️ Type the missing code: