How to run the App localy:
clone the project
$ git clone https://github.com/OpenClassrooms-Student-Center/Billed-app-EN.git
go to the cloned repo
$ cd Billed-app-EN
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/