Testing Flashcards

1
Q

unit testing

A

testing individual components

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

integration testing

A

how components behave when working with other components

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

systems testing

A

how the entire application behaves, along with people using it AND the hardware

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

Jest

A

javascript platform written by Facebook, can be used with any JS program, not just React

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

npm test

A

commandline command for running tests

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

smoke test

A

a test that ensures the component renders

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

snapshot test

A

saved versions of the user interface rendered by the React component being tested

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

enzyme

A

testing library built to test react components
for event handlers
inspecting state
debugging

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

shallow

A

creates a wrapper instance the dev can interact with

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

wrapper

A

allows the dev to simulate actions on a node

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

jest.fn()

A

creates a Jest mock object, spy on an object

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