First step is to fork
this repo to your account, then clone
it locally.
After you do that, add a remote
to point to CodeYourFuture repo, that will allow you to update you forked copy when we update the repo with more exercises.
This is the command to run
git remote add upstream [email protected]:CodeYourFuture/js-core-2-exercises.git
To run the tests from the console, run the command: npm test
To keep the tests running (auto updating when you save files), run the command: npm test -- --watch
then press a
to run all the tests and keep watching the files for changes. To quit the tests, type q
.
To run a specifc test, do: npm test -- filename
for example npm test -- findAlive
(that will run only the files that matches findAlive, i.e. findAlive.test.js)
Refer to our syllabus (JS-Core lesson 3) to refresh your knowledge on the testing framework JEST
- also refer to its documentation: https://facebook.github.io/jest/docs/api.html