[Contributing] How do I test matcher outputs? #369
Answered
by
SevenOutman
SevenOutman
asked this question in
Q&A
-
Hi there, I want to contribute some new matchers but don't see how to test the outputs. For example, I want
I looked in the codebase but only found tests for whether matchers pass/fail correctly, not for outputs. |
Beta Was this translation helpful? Give feedback.
Answered by
SevenOutman
May 31, 2021
Replies: 1 comment
-
Found out myself. expect(() => {
expect(thing).toHaveApples();
}).toThrowError("expected output"); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
SevenOutman
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found out myself.