The Wayback Machine - https://web.archive.org/web/20221224190327/https://github.com/juristr/angular-testing-recipes
Skip to content

juristr/angular-testing-recipes

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
e2e
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Angular Testing Recipes

Build Status

This repo is for Angular version 2+. More Β»

The goal of this repository is to have a collection of recipes for common testing scenarios with Angular. I'm happy for every contribution/suggestion πŸ˜ƒ.

Talk (Video + Slides)

I've been giving a talk on "Testing with Angular".

Contents

All the scenarios are listed here below and nicely linked to the source file.

  1. Testing Components
  2. Testing Services
  3. Testing Pipes
  4. Custom Matchers and Utilities

Articles on Testing

Run them yourself

If you want to run the example locally,

  1. clone this repository
  2. Run npm install
  3. Run npm test to execute all the tests

By running npm run test.watch you can run the tests in watch mode which is particularly useful during development.

Contribute

Wanna help? Of course! Just open an issue and/or send me a PR πŸ˜ƒ.

Other Links & Resources

About

Simple testing patterns for Angular version 2+

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published