- Put the tests inside
.hg
folder in the exercises repo. - Add
.hg
to the.gitignore
. - Use
npm run update
to update the tests in the remote repository of all of the tests. It will be commited using a default commit message. If you want to add your custom message, run the command just like that:npm run update -- -m "commit message"
- In the lesson repository, add the following to the scripts:
"tests": "tests", "update": "update"
In order to run tests in band (One by one), change the scripts to:
"test-silent": "jest --runInBand || exit 0"
"tests": "tests --runInBand"