Skip to content

Time - Hannah T & Nataliya #19

Open
stpatrickschild wants to merge 14 commits into
Ada-C13:masterfrom
stpatrickschild:master
Open

Time - Hannah T & Nataliya #19
stpatrickschild wants to merge 14 commits into
Ada-C13:masterfrom
stpatrickschild:master

Conversation

@stpatrickschild

Copy link
Copy Markdown

Inspiration Board

Congratulations! You're submitting your assignment!

Comprehension Questions

Question Answer
1.) What is the flow of data from input on the form to being a new card on the board? First the input data get stored in the form state, then on submit we ran a callback function which send a Post request to API, and updates the board state to re-render the cards.
What function did you use to make the GET request from the API to get the list of cards? Why use that function? We used the useEffect hook function, to make the get request. We used it because it allows to set State on the initial mounting of the component.
How do snapshot tests differ from unit tests? Unit test, test the functionality of the program whereas snapshot test, test if all parts of the DOM were rendering as they should, and doesn't test functionality or behavior.
What purpose does Enzyme serve in testing a React app? Enzyme's purpose is to serve as testing utility for React that makes it easier to test, React Components' output. It also help manipulate, traverse, and in some ways simulate runtime given the output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant