Skip to content

Sockets-Chantal#42

Open
ChantalDemissie wants to merge 6 commits intoAda-C11:masterfrom
ChantalDemissie:master
Open

Sockets-Chantal#42
ChantalDemissie wants to merge 6 commits intoAda-C11:masterfrom
ChantalDemissie:master

Conversation

@ChantalDemissie
Copy link
Copy Markdown

@ChantalDemissie ChantalDemissie commented Jun 24, 2019

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? in the new card form it makes a callback to the App, and the app adds the new card to the list of cards. then it triggers the board to recreate with all 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? i used componentDidMount. I used it because when we need to fetch any data from an API the API call should be placed in this type of lifecycle method.
How do snapshot tests differ from unit tests? Snapshot tests will check for changes when rendering, they should not be used as a replacement to unit tests but as a compliment to them. For example snapshot tests will not test functionality or if it redirects to another page.
What purpose does Enzyme serve in testing a React app? Enzyme is a library. In Enzyme there is "shallow" and "mount". Shallow is a type of unit test for React that is specifically designed to only test one function. Mount is used to test functions that rely on other functions.

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