You should fork this repository to your own account. You should then either >
Open a terminal. Navigate to the folder you would like to use using cd <DIRECTORY PATH>
You can then clone the folder using
git clone https://github.com/<YOUR NAME>/di-workshop-07c-assertions3.git
(alternatively if you are not going to save the changes you can use)
git clone https://github.com/adaapp/di-workshop-07c-assertions3.git
Open the project using a code editor, such as VS code (code .
)
Clone the repo to your own account.
Go to repl.it, click the IMPORT REPO button at the top left. Copy and paste the address of your repo.
It should look like
git clone https://github.com/<YOUR NAME>/di-workshop-07c-assertions3.git
If you are not going to save any of the changes, you can use:
You can set the 'run' button to use npm test
if you would like.
Type npm install
on your terminal or the repl.it terminal to install mocha.
Look at the exercise files. Your goal is to complete the exercises in sequence by getting the tests to pass. You can try the tests using npm test
. See the instructions in the test files.
The workshop will be set up to allow you to save your changes.
For this, you should use git add .
to 'stage' all files, i.e. prepare them to be committed, git git commit -m "MESSAGE HERE"
to register the changes, then git push origin master
to save your changes to the server. You should get into the habit of doing this after every completed exercise.
Based on the Free Code Camp testing exercises and used under the BSD 3 license.