Testing
Testing related cheatsheet collection - 3 quick reference guides. Find fast, copy directly. The essential online command reference for developers and SRE.
Chai Cheatsheet - Assertion Library
A Chai.js assertion reference covering all three styles — expect and should (BDD) and assert (TDD): equality, deep comparison, types, inclusion, thrown errors, numeric bounds, plus async and HTTP helpers via plugins. Copy and run.
Sinon Cheatsheet - Test Doubles
A Sinon.js test-double reference: spies that observe calls, stubs that replace behavior with returns/throws/resolves, strict mocks, fake timers, sandboxes, and assertion helpers — the tools for isolating units under test. Copy and run.
Jest Cheatsheet - Testing Framework
Jest testing APIs covering test cases and grouping (describe/it), matchers and assertions, async testing, mock functions and module mocking, snapshot tests, and coverage reports. For writing JavaScript unit tests that fail for the right reason.