4. Introduction to Jest Flashcards

1
Q

What are the six common Jest pitfalls?

A
  1. Tests are not written
  2. No integration with version control
  3. Jest is not integrated into devs’ workflow
  4. Devs skip tests instead of fixing them
  5. No integration with deployment/CI
  6. Tests do not protect against critical errors
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly