This is my first mini project to create tests using Jest.
To run a this site in Gitpod, in the terminal, type:
python3 -m http.server
-
A blue button should appear to click: Make Public,
-
Another blue button should appear to click: Open Browser.
To run the tests in Gitpod, in the terminal, type:
npm test
How to install Jest:
- Type
npm init
into the terminal. - Use default settings for all except test command, type
jest
here. - When the package.json file has been installed, type
npm install --save-dev jest
Note, a previous version of Jest was installed in this project, I did this by entering the following for step 3. npm install --save-dev jest@26.6.3
I learned this information through the Code Institute.