Angular Tests Made Easy

What is Spectator?

Spectator is written on top of the Angular Testing Framework and provides two things:

A cleaner API for testing.

A set of custom matchers that will help you to test DOM elements more easily.

Spectator helps you get rid of all the boilerplate grunt work, leaving you with readable, sleek and streamlined unit tests.

Why

Writing tests for our code is part of our daily routine. When working on large applications with many components, it can take up a lot of time and effort. Although Angular provides us with great tools to deal with these things, it still requires a lot of boilerplate work.

For this reason, I decided to create a library that will make it easier for us to write tests by cutting down on the boilerplate and adding custom Jasmine matchers.