Tic Tac Toe game (web version) made using HTML, JS.
- Estimated time: 2 hours
- Format: Pairs
- Take a look at the code and design an automatic testing strategy.
- Find maintenance problems in the code and prioritise how to fix them.
- Refactor the code from this repository following the given testing approach.
Node v22 is required to run this project.
💡If you don't have it installed, we recommend the use of a version manager like nvm or fnm (a cross-platform alternative to nvm). After installing the manager, you can install the Node version by running:
nvm use
orfnm use
.
Once you have Node installed, you can install the project dependencies by running:
npm install
This project uses the following plugins:
- Vitest, a blazing fast test framework.
- Biome, a toolchain for linting and formatting.
- Playwright, a tool for end-to-end framework.
ℹ️ If VSCode is your editor of choice, you can install the recommended extensions.
You can run the tests by running:
npm run test
If you want to run the tests in watch mode, you can run:
npm run test:watch
Also, you can run the tests with coverage by running:
npm run test:coverage
You can run the e2e tests by running:
npm run e2e
If you want to run the e2e tests displaying the browser, you can run:
npm run e2e:ui
You can start server in development (with hot reload) by running:
npm run dev
Or in production mode by running:
npm run serve
No matter which command you run, you can access the application by clicking the link provided in the terminal.