unit-tests-jest Flashcards

1
Q

What are unit tests?

A

tests used to check if your code works

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

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

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

What is Jest? What are some other popular JavaScript unit testing frameworks?

A

a JS unit testing framework

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