Skip to main content
LaoHandDeveloper Cheatsheet
Cheatsheets
All cheatsheetsSysOps Ops ContainersLanguages & Web Lang Web VCSData & Storage DBTools & Efficiency Tools Ref Config Shortcuts
AI Tools
AI CLI AIAI Tools AI CLI comparison Prompt templates
GuidesMy Sets
More
About Changelog Contact
中
Home›Testing
#

Testing

Testing related cheatsheet collection with 3 quick references covering common commands, flags and real usage for developers and SRE.

Related Tags

javascriptchaiAssertionssinonmockspystubjestFrontend

Chai.js Cheatsheet - expect, should & assert Assertions

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.

2026-07-2144 commands
chaiTestingAssertions

Sinon.js Cheatsheet - Spy, Stub, Mock & Fake Timers

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.

2026-07-2146 commands
sinonTestingmock

Jest Cheatsheet - Matchers, Mocks & Async Testing

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.

2026-07-2144 commands
jestTestingjavascript
LaoHandDeveloper Cheatsheet

A curated collection of 202 high-frequency command cheatsheets across containers, ops, databases, languages and more. Find fast, copy directly.

Explore

  • Home
  • All Categories
  • All Cheatsheets
  • My Cheatsheet Set
  • Contact

Resources

  • Recently Updated
  • Popular Tags
  • Guides
  • About
  • Changelog
  • OLTool - 专业工具箱

Legal & Compliance

  • Privacy Policy
  • Terms of Service
  • Disclaimer
© 2026 laohand.com · Developer Cheatsheet蜀ICP备17034332号-2
Crafted with care · Free & open source