Testing · Junior · Question 20 of 78

What does .not do in expect(value).not.toBeNull()?

Explanation

Any matcher can be negated: .not.toContain, .not.toHaveBeenCalled and so on.

Further reading

Problem with a question

Testing · Junior · question 20

Test yourself

Take the Testing · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz