Skip to content
jshacks.dev

Tag

best practices

1 post

Flat illustration of a test run shown as a row of passing dots, with the Vitest, Cypress, Jest and Mocha logos.
Testing

What Makes a Good Test?

What makes a good test: it fails for the right reason, reads like a spec, runs fast, stays independent and survives refactoring, with before and after examples.

8 min read