This project is a part of assignment that focuses on unit testing using the Jest framework and Node.js. It revolves around testing various functionalities related to a default array of cars, such as retrieving the price of a car by a given key, fetching the color(s) of a car, and verifying other car-related properties. The project is designed to help developers understand how to implement unit tests to ensure the correctness of the code and its functionalities.
The project is aimed at developers who want to enhance their skills in:
- Unit testing using Jest.
- Node.js backend development.
- Working with arrays and data structures. Purpose
- The project was created to demonstrate how to effectively apply unit testing in real-world projects. It serves as a learning tool for anyone interested in ensuring the reliability of their codebase through rigorous testing practices.
Built with:
- Node.js: A JavaScript runtime for building scalable server-side applications.
- Jest: A delightful JavaScript testing framework focused on simplicity.
- JavaScript (ES6): The core language used in the project.
-
Clone the repository to your local machine:
git clone https://github.com/bishnu-suyel/Suyel_Bishnu_car.git
-
Install dependencies:
npm install
-
Run the tests using Jest:
npm run test
-
To customize the tests or the car array, modify the data or test files located in the
__tests__
directory.
No any
No any
- GitHub Guides - Mastering Markdown
- Make a README
- Jest Documentation - Learn more about Jest testing framework
- Heliö Ilkka