Some basic exercises to discover JS.
Install node.js on your system, you need node 20 ! You can use nodesource builds to install node v20.
# clone the repository or download the exercises
# Move into the repository
cd ex-js
# Install dependencies
npm i
# Install playwright browser for e2e tests
npx playwright install
Launch the tests by typing
npm run test
, this will launch all tests, and rerun tests at each file change. You can also launch test from your IDE. You can browse tests, they are located in files ending with.test.js
.
First you need to launch de dev server
npm run dev
, to see your results in the browser. The dev server must be started for the tests to execute correctly. Launch the tests by typingnpx playwright test
, if you encounter difficulties, you can run the tests in ui mode, to see wich test fails :npx playwright test --ui
.