HimanshuP90 / React-Hooks-TypeScript

A Todo app using react v16.9.0 hooks, typescript & webpack4 configuration with es6 syntax

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why Test?

  1. Get an error if you break code

  2. save time

  3. Think about possible issues & bugs

  4. integrate into build workflow

  5. Performance

  6. Features

  7. Usability

1: unit test, api test, integration, component, ui test, e2e.

module under test ? isolation mock something else which is using in components

++++ What makes a good test +++++

  1. run fast
  2. test should not break.
  3. easy to read and understand.
  4. good coverage to effort ratio.
  5. mocking too much reduce test quality.

+++++++ Test Strcuture ++++++++

  1. Initial Setup for rendering.
  2. Disptach an action.
  3. expect data to change.

ESLint: basically check the code & test the basic error

About

A Todo app using react v16.9.0 hooks, typescript & webpack4 configuration with es6 syntax


Languages

Language:TypeScript 72.3%Language:JavaScript 16.0%Language:HTML 11.6%