CarmenCantudo / Jest-Testing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gitpod Reminders

To run a frontend (HTML, CSS, Javascript only) application 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 a backend Python file, type python3 app.py, if your Python file is named app.py of course.

A blue button should appear to click: Make Public,

Another blue button should appear to click: Open Browser.

In Gitpod you have superuser security privileges by default. Therefore you do not need to use the sudo (superuser do) command in the bash terminal in any of the lessons.

Install Jest

npm init

No need to answer anything except:

test command: jest

npm install --save-dev jest@26.6.3

Test in terminal

npm test

Problems

If the terminal says:

> jest-testing@1.0.0 test

> echo "Error: no test specified" && exit 1

Error: no test specified

Add the following section to your package.json:

{ "scripts": { "test": "jest" } }

About


Languages

Language:Dockerfile 81.2%Language:JavaScript 11.0%Language:HTML 7.8%