This repository is dedicated to showcase the capabilities of Jest framework for implementing unit tests for Javascript code. Jest provides a simple and efficient way to write unit tests, ensuring its reliability and correctness.
Unit Testing with Jest: Explore examples of how to structure and write your tests effectively.
GitHub Actions Workflow: This demo includes a GitHub Actions workflow to automate the testing process. Each push to the repository triggers a set of tests to ensure that your codebase remains in a reliable state. Check out the .github/workflows directory for the workflow configuration.
- Clone the Repository:
git clone https://github.com/nora-weisser/testing-with-jest.git
- Install Dependencies:
cd testing-with-jest
npm install
- Running Tests To run the test suite, use the following command:
npm test
You can customize the test execution by modifying the Jest configuration in the jest.config.js file.