EduFlow
Testing JavaScript Apps

Checkpoint: Testing Strategy

Five questions on this section. Answer all of them, then see your score and why each answer is right or wrong.

Question 1 of 5

Test-first, you have parseAmount('12') passing with return Number(input) * 100;. Which next test forces the smallest useful step?

Question 2 of 5

src/money/settle-up.js has no tests, but it does not appear in the Vitest coverage report at all. Why?

Question 3 of 5

Stryker reports EqualityOperator: amountCents <= 0 → amountCents < 0 as Survived in saveExpense’s validation. Which test kills it?

Question 4 of 5

In the GitHub Actions workflow, the Playwright report artifact is missing every time the tests fail. What is the upload step missing?

Question 5 of 5

Which of these tests is worth writing?

5 questions unanswered