Tools for unit tests

in Angular

Wojciech Trawiński

xStation Guild, 23.06.2022

Goal

Make Angular unit tests great again!

 

Improve developer experience (DX)

by providing abstraction on native Angular API

which simplifies creation and maintenance

of unit tests.

Features

  • schematics,
  • strongly typed,
  • fluent API,
  • global injections,
  • easy DOM querying,
  • easy event triggering,
  • auto-mocking providers,
  • custom matchers.

Benefits

  • increased engagement in writing unit tests,
  • easier dependencies mocking,
  • easier maintenance of unit tests.

Action points

  • add packages a dev dependencies,
  • update default schematics in angular.json,
  • install spinnets in IDE (optional).

Tools for unit tests in Angular (xS Guild)

By wojtrawi

Tools for unit tests in Angular (xS Guild)

  • 108