/05-testing

testing excercises from frontend master of lemoncode

Primary LanguageTypeScriptMIT LicenseMIT

Testing

Description

Excercises from Master Degree Front End of Lemoncode. Objective was to do different kind of testing to an existing project.

  • Unit testing to mapper function
  • test react components with RTL
  • test react hooks with RTL
  • E2E testing with Cypress
  • Config JEST + Cypress
  • CI pipeline with Github Actions

Instalation

Clone repository and and install dependencies:

npm i

Usage

Development server

npm start:dev

You can view the development server at localhost:8080.

Production build

npm run build:prod

Production files goes to /dist folder

Production dev

npm run build:dev

Production files goes to /dist folder

Bundler Analyzer

npm run analyze

helps to inspect the bundle

Run unit/integration test

npm run test

Run cypress E2E test

npm run test:e2e

Author