This project contains the solution for the home assignment provided by Ivan. It includes a fully implemented test.spec.ts file with test cases for the project. Below are the instructions on how to run the tests using WebStorm or the terminal.
Make sure you have the following installed:
- Node.js (v16+)
- npm (v9+)
- WebStorm IDE
Copy the repository to your local machine:
npm install
To run the tests in WebStorm, follow these steps:
- Open the project in WebStorm.
- Open the
test.spec.ts
file located in the src directory. - Right-click anywhere in the
test.spec.ts
file. - Select
Run 'Cache Pool'
from the context menu.- Alternatively, you can click the green Run icon next to the test definitions inside the file.
- WebStorm will automatically run the tests, and you will see the results in the IDE's Run panel at the bottom.
If you prefer using the terminal, you can run all the tests using the following command:
npm test
- Make sure all dependencies are installed by running npm install.
- If you encounter any issues running the tests, please verify that your environment is correctly set up and that all required packages are installed.