We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c388a49 commit 0c5c78cCopy full SHA for 0c5c78c
1 file changed
integration_tests/stack_trace/__tests__/custom_matcher.test.js
@@ -25,14 +25,15 @@ expect.extend({
25
});
26
27
describe('Custom matcher', () => {
28
- // This test is expected to pass
29
it('passes', () => {
+ // This expectation should pass
30
expect(() => 'foo').toCustomMatch('foo');
31
32
33
- // This test is expected to fail
34
it('fails', () => {
35
expect(() => {
+ // This expectation should fail,
36
+ // Which is why it's wrapped in a .toThrow() block.
37
expect(() => 'foo').toCustomMatch('bar');
38
}).toThrow();
39
0 commit comments