4. Introduction to Jest Flashcards
1
Q
What are the six common Jest pitfalls?
A
- Tests are not written
- No integration with version control
- Jest is not integrated into devs’ workflow
- Devs skip tests instead of fixing them
- No integration with deployment/CI
- Tests do not protect against critical errors
2
Q
What is Jest?
A
Jest is a modern and widely adopted test runner that is built on top of Mocha and Jasmine. It’s developed by the React team.
3
Q
What can be said about Jest versioning?
A
Jest tends to vary in minor yet significant ways from version to version. Being aware of which Jest version you’re working with is one of the best skills to prevent surprises and unexpected bugs.
4
Q
What can be said about Jest in relation to Mocha?
A
Jest is built on top of Mocha and it is similar to Mocha but has a ton of extra features such as spies and snapshots.