React: Testing and Debugging Flashcards

1
Q

What’s the name of the testing package that comes out of the box with create-react-app?

A

Jest

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

What library can you use for type-checking?

A

Flow

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

How do you initialize flow?

A

After having installed the npm package, and having added a “flow” target to react scripts that simply runs “flow, you run npm run flow init.

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

How do you tell flow to check the types of a file?

A

You add a comma to the first line of that file that reads “ // @flow

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