Skip to content

ChristopheRibault/ChristopheRibault_9_24082021

 
 

Repository files navigation

Billed

OpenClassrooms FrontEnd developer course

Project 6

The purpose is to debug an axisting application and increase test covering.

Technos:

  • Javascript
  • Jest

Tasks :

How to run the App localy:

clone the project $ git clone https://github.com/OpenClassrooms-Student-Center/P6-front-end-testing.git

go to the cloned repo $ cd P6-front-end-testing

install npm packages (described in package.json) $ npm install

install live-server to run a local server $ npm install -g live-server

launch the App $ live-server

then go to : http://127.0.0.1:8080/

How to run all tests with Jest:

$ npm run test

How to run a single test:

install jest-cli

$npm i -g jest-cli

then

$jest src/__tests__/your_test_file.js

How to see test coverage:

http://127.0.0.1:8080/coverage/lcov-report/

Releases

No releases published

Packages

No packages published

Languages

  • HTML 59.8%
  • JavaScript 35.5%
  • CSS 4.7%