Skip to content

Space - Olivia and Sara #21

Open
sarabrandao21 wants to merge 9 commits into
Ada-C13:masterfrom
sarabrandao21:master
Open

Space - Olivia and Sara #21
sarabrandao21 wants to merge 9 commits into
Ada-C13:masterfrom
sarabrandao21:master

Conversation

@sarabrandao21

Copy link
Copy Markdown

Inspiration Board

Congratulations! You're submitting your assignment!

Comprehension Questions

Question Answer
What is the flow of data from input on the form to being a new card on the board? user inputs the message, then I POST request is made. We update the state of board(holds all the cards) pushing the new card card to the array of cards(board).
What function did you use to make the GET request from the API to get the list of cards? Why use that function? useEffect this function is a dependency array. If one of the dependencies change the callback method will be run, if it is empty it will only run on the first render.
How do snapshot tests differ from unit tests? unit test the functionality and snapshot tests the result of the html.
What purpose does Enzyme serve in testing a React app? Enzyme is a JavaScript Testing utility for React that makes it easier to test your React Components' output. You can also 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.

2 participants