smmd / react-certification-2021

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wizeline Academy - 2021 React Bootcamp

Please refere to the following GIST for further instructions

Sagrario's answers of some questions on Mini-Challenges

Mini-Challenge 2: Intro to Testing:

  1. Using create-react-app, what do we need to set up for testing?
1. Get the testing-library of react.
2. Create a folder called "tests" for keep the spec files into.
  1. What components are worth to test in your development?
Those that execute react logic.
Components that interact with the user (we can do it sending mocked data).

Dommies Components (those to which you send any data as property without any special behavior) should not be tested.
  1. Can you apply TDD once you already created components?
Yes, it is possible to apply TDD even just to find bugs, TDD from scratch just it could be applied to an existing but empty component.

About


Languages

Language:JavaScript 77.4%Language:CSS 12.5%Language:HTML 10.1%