Jest framework allows us to set up testing our application without creating complicated configurations. It includes the most of necessary tools needed to have good testing suite such as:
- mocking - i love that feature
- jasmine's assertion library
- code coverage (with reports)
- easy to plug-in into CI systems
- based on JSDOM, allows us to test DOM updates without running headless browser.
- created for React
Mocking with Jest is super easy, we can mock dependencies without struggle.
We don't need to use Dependency Injection to make mocking possible, even when we need to mock window
object.