unit-tests-jest Flashcards
1
Q
What are unit tests?
A
tests used to check if your code works
2
Q
Why is it important to write unit tests?
A
When you code works its a nice way to make sure that the code still works when refacoring.
3
Q
What code should be tested with a unit test? What code is not well suited for unit tests?
A
when the tests are only in that code block/not dependent on external sources( other code block, databases, etc.
4
Q
What is Jest? What are some other popular JavaScript unit testing frameworks?
A
a JS unit testing framework