Copy items that are not faded out

This commit is contained in:
Daniel Pötzinger
2017-09-08 22:53:55 +02:00
parent 33e66cb6fe
commit 8be44ec001
63 changed files with 1026 additions and 0 deletions

18
radar/2017-10-01/jest.md Normal file
View File

@@ -0,0 +1,18 @@
---
title: "Jest "
ring: assess
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.