Skip to content

Space- Jeta & Yieni#12

Open
yieknee wants to merge 8 commits into
Ada-C13:masterfrom
jetabajrami:master
Open

Space- Jeta & Yieni#12
yieknee wants to merge 8 commits into
Ada-C13:masterfrom
jetabajrami:master

Conversation

@yieknee

@yieknee yieknee commented Apr 26, 2020

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 inputs a new form, this act will trigger the event listener onInputChange. This event listener will set newformFields to formFields. When we submit the form, we it triggers onFormSubmit, by calling a callBackFunction which will send a new card to the parent (board) and the form will be set to a new empty from. addCard uses axios post to tigger a post to the API.
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 useEffect, this function will to load content after a component gets rendered to the DOM the first time.
How do snapshot tests differ from unit tests? They are different, Snapshot testing create a snapshot of the component and after that compares how the component gets changed after you renders when you make changes.
What purpose does Enzyme serve in testing a React app? Enzyme is a JavaScript Testing utility for React that makes it easier to assert, manipulate, and traverse your React Components’ output. 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.

1 participant