Skip to content

Time - Sharon Olga#5

Open
olgapatrakova wants to merge 12 commits into
Ada-C13:masterfrom
olgapatrakova:master
Open

Time - Sharon Olga#5
olgapatrakova wants to merge 12 commits into
Ada-C13:masterfrom
olgapatrakova:master

Conversation

@olgapatrakova

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 a user types text, OnChange event listener triggers OnInputChange function, updates formFields, and after clicking Submit button it's passed to addNewCardCallback function that triggers addNewCard function in Board component which then makes an API POST request.
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() function to make the GET request from the API to get the list of cards. This function helps avoid a blank page while the program is getting an API response.
How do snapshot tests differ from unit tests? The snapshot tests work like VCR cassettes, making an HTML snapshot of what the page should display. Even small changes in a component can cause them to fail. They are used for something that is not going to be changed very often. Unit tests are for testing specific return of the function. They can be used as part of the TDD process, and they are used more for the backend.
What purpose does Enzyme serve in testing a React app? It's a JavaScript utility for React, that adds additional functionality like simulating events or user interactions.

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