Eduard Fidiles ([email protected])
Version number: 3858c958380fff9417bbc8d0c36472c6c4b4c34c
Assuming that you are in a terminal window in the project's directory:
- Run the app:
npm i && npm start
and open http://localhost:3000 - Run the tests:
npm i && npm test
The code coverage is displayed after the output of the tests.
- node.js and npm must be installed (link)
- from the command line,
- navigate to the directory with the test
- and type:
npm install
Assuming that you are in a terminal window in the project's directory:
- type:
npm start
- you should get a new tab opened in your browser with the app. If it doesn't,
- open http://localhost:3000 in your browser
Assuming that you are in a terminal window in the project's directory:
- type:
npm test
- you should see the tests in your terminal and at the end the coverage report
The test can also be checked online in CodeSandbox (cloud editor):
This is the link: https://codesandbox.io/s/r7p70pz9wm
Disadvantage: The code coverage cannot be seen