Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sockets -MAria #32

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

sockets -MAria #32

wants to merge 9 commits into from

Conversation

MariaWissler
Copy link

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? The input in form updates NewCardForm state, that state is passed to App by using a callback, called when Add a Card button is clicked. In the App component a post request is make for the board, with the state passed from the NewCardForm. After this card is posted, there is also an update in the state of the card list in App, to include this new card.
What function did you use to make the GET request from the API to get the list of cards? Why use that function? "ComponentDidMount" function is used after a component is "mounted", to instantiate a network request.
How do snapshot tests differ from unit tests? Snapshot tests are used in React, snapshot tests compares to a saved rendering of the JSON for a component, to the current, then tell you if they have differences, unit tests are used to test backend functionalities and fail if those methods are not working.
What purpose does Enzyme serve in testing a React app? Enzyme provides a mechanism to mount and traverse React.js components. This will help us get access to its own properties and states as well as its children props in order to run our assertions, offering two basic functions for component mounting: shallow and mount. The shallow function loads in memory only the root component whereas mount loads the full DOM tree.

@MariaWissler
Copy link
Author

forgot to add more commits in between the test, sorry 🙈

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