Testing · Middle · Question 38 of 75

What does a coverage threshold in config do?

coverage: { thresholds: { lines: 80, branches: 70 } }

Explanation

Thresholds prevent coverage from silently going down; they shouldn't become a goal by themselves.

Further reading

Problem with a question

Testing · Middle · question 38

Test yourself

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

Take this quiz