Unit Testing Flashcards

1
Q

What are unit tests?

A

A unit test is a way of testing a unit - the smallest piece of code that can be logically isolated in a system.

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

To have more control over an individual code block quality before integrating different components and then sent for regression testing.

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 suited well for unite test?

A

Units

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

Testing framework

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