Skip to content

Instantly share code, notes, and snippets.

View CommanderTso's full-sized avatar

Scott Macmillan CommanderTso

View GitHub Profile
@CommanderTso
CommanderTso / GreatHorn JS Testing CheatSheet.md
Last active September 12, 2016 19:13
GreatHorn JS Testing Cheat Sheet - using Mocha, Chai, Enzyme, and Sinon

This cheatsheet was created to describe the JS frontend testing setup we use at GreatHorn. It may skip or gloss over some components these frameworks use, simply because we're not using or focused on documenting them.

###References

  • Mocha - our test harness
  • Chai - our main assertion library
  • Sinon - Spies, Mocks, and Stubs support
  • Enzyme - testing support for React
  • Chai-Enzyme - assertion library for React components

###Further Study