A simple Angular project created to practice and learn unit testing using Jasmine and Karma. Includes basic components with corresponding unit tests covering component logic, DOM interaction, service integration, and input/output bindings.
This project is intended for learning and experimenting with unit testing in Angular. It demonstrates best practices for writing clean, effective tests for components and services.
Unit tests for:
- DOM rendering
- Input/Output bindings
- Event handling
- Service method mocking
Clone the Repo
- git clone https://github.com/your-username/angular-unit-test-practice.git
- cd angular-unit-test-practice
npm install
ng serve
ng test
- Tests are written using TestBed, fixture.debugElement, and mocking with spyOn().
- Components are kept simple to focus on learning test structure and logic.
This project is for educational/demo purposes. Thanks for checking it out!