โ—€

Tests

โ€œAsking a question should not change the answerโ€
Meyer, Bertrand. "Eiffel: a language for software engineering"

Tests environment

  • Testing framework: Jasmine / Mocha
  • Test runner: Karma / Chutzpah / Phantomjs
  • Assertions library: Chai / Should.js
  • Mocking library: Sinon.js / Jasmine
  • Code coverage: Istanbul
  • Snapshot tests
๐Ÿคฏ

๐ŸŽ Meet Jest

Complete and ready to set-up JS testing solution

๐Ÿ•น Behaviour Driven Development

๐Ÿš€ Running the tests

โฑ Collecting coverage

โš–๏ธ Assertions

Spies

Mocks

๐ŸŽข๐ŸŽ ๐ŸŽก Mocking modules

๐Ÿ“ธ Snapshot testing

๐Ÿ›  Try it