Skip to content

Time - Yesenia && Lola#23

Open
ubeninja77 wants to merge 16 commits into
Ada-C13:masterfrom
ubeninja77:master
Open

Time - Yesenia && Lola#23
ubeninja77 wants to merge 16 commits into
Ada-C13:masterfrom
ubeninja77:master

Conversation

@ubeninja77

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? When the user fills out the form fields; a API request is made. The form data in state is updated by adding a new card into the array of cards and the board get updated.
What function did you use to make the GET request from the API to get the list of cards? Why use that function? useEffect was used to render its components while the API call is being made. Changes (adding and deleting cards) to board happens almost immediately.
How do snapshot tests differ from unit tests? Unit test are used to ensure methods are functioning properly. Snapshot test are different because they test the UI components and what the user sees at a moment in time.
What purpose does Enzyme serve in testing a React app? Enzyme is a JavaScript (library) testing utility (designed and open sourced by Airbnb). The library makes it easier to test your React Components' output; gives you a real-time simulation. sources: https://medium.com/airbnb-engineering/enzyme-javascript-testing-utilities-for-react-a417e5e5090f and https://medium.com/codeclan/testing-react-with-jest-and-enzyme-20505fec4675

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