Skip to content

Space - Shonda & Kate#18

Open
Shonda860 wants to merge 23 commits into
Ada-C13:masterfrom
Shonda860:master
Open

Space - Shonda & Kate#18
Shonda860 wants to merge 23 commits into
Ada-C13:masterfrom
Shonda860:master

Conversation

@Shonda860

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? Looking at the state which is formFields, then handle changes in onChange input and use this to compare the state change. Then this goes to the board and once this is submit is clicked, the event handler submits will then populate a 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? Why use that function? The function is called getCards() that gets the new cards, returns any errors, and then re-renders to the UI. Made this a function because was copying and pasting at several spots thorughout the board.
How do snapshot tests differ from unit tests? Snapshot tests are used to track if the UI changes unexpectedly. For example, a snapshot test case renders a UI component, takes a snapshot, then compares it to a reference snapshot file stored next to the text.
What purpose does Enzyme serve in testing a React app? It is similar to a gem in Ruby, it helps with running tests in React.

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