mawrkus/js-unit-testing-guide: 📙 A guide to unit testing in Javascrip
github.com · 3,794 words · saved by 1 readers
📙 A guide to unit testing in Javascript
This is a living document. New ideas are always welcome. Contribute: fork, clone, branch, commit, push, pull request. All the information provided has been compiled & adapted from many references, some of them cited at the end of the document. The guidelines are illustrated by my own examples, fruit of my personal experience writing and reviewing unit tests. Many thanks to all of the sources of information & contributors. 📅 Last edit: September 2025. 📖 Table of contents General principles Unit tests Design principles Guidelines Whenever possible, use TDD When applying TDD, always…
saved by
related reading
- Why Good Developers Write Bad Unit Tests · mtlynch.iomtlynch.io
- Bypassing module mocks · Jestjestjs.io
- Crafting High Quality Unit Tests: Tips and Best Practicesmarclittlemore.com
- Reading 3: Testingweb.mit.edu
- What if writing tests was a joyful experience?blog.janestreet.com
- Software Engineering at Googleabseil.io
- Reading 2: Testingweb.mit.edu
- CSC 151 - Unit Testingeikmeier.sites.grinnell.edu
- Google Testing Blog: Testing on the Toilet: Test Behaviors, Not Methodstesting.googleblog.com
- Fighting Distraction With Unit Tests | Matthew C Devmatthewc.dev
- Google Testing Blogtesting.googleblog.com
- Unit and Integration Testsmatklad.github.io