Q3 updates and new (empty articles)

This commit is contained in:
Bernhard Behrendt
2018-04-30 16:14:57 +02:00
parent d9bd283ad5
commit 049a5afd88
36 changed files with 105 additions and 106 deletions

View File

@@ -1,18 +1,6 @@
---
title: "Jest "
ring: assess
title: "Jest"
ring: trial
quadrant: tools
---
[Jest](https://facebook.github.io/jest/) is a javascript testing framework by facebook to test javascript code **and** react applications / components.
We started using Jest (and [watchmen](https://github.com/facebook/watchman)) instead of Karma because it:
- gives us integrated mocking library
- gives us integrated support for testing "promises"
- gives us integrated code coverage report
- automatically runs tests related to changed files (instead of all tests)
- gives us parallel test execution
- gives us snapshot testing for react components
It is easy to set up. And even if you have a running setup with karma/chai you can easily replace karma with jest. With a small [workaround](https://medium.com/@RubenOostinga/combining-chai-and-jest-matchers-d12d1ffd0303#.3callo273), chai and jest test matchers work fine together.
---