Unit testing library for Angular application

This page summarizes the projects mentioned and recommended in the original post on /r/Angular2

SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • Protractor

    E2E test framework for Angular apps

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • ng-mocks

    Angular testing library for mocking components, directives, pipes, services and facilitating TestBed setup

  • Correct. When unit testing, you want to test the unit (parent component) in isolation. To do this, you can use something like ng-mocks (my personal favorite) to create mock components. You could also use the NO_ERRORS_SCHEMA but I don't recommend this because I like to verify that my component loads w/ all of its dependencies (even if the are just mocks). If you test your parent component w/ all of its child components, then you are doing a form of integration testing. I tend to refer to it as a grey area between unit and integration testing because there are valuable tests that can be written fairly easily and cheaply that don't truly isolate parent components from their child components.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Simulating Internet Outage and Recovery using Cypress

    2 projects | dev.to | 25 Jan 2024
  • Testing Defer Blocks in Angular with Cypress

    2 projects | dev.to | 21 Dec 2023
  • Cypress changed older versions to block third-party plugins (ignoring lockfiles)

    2 projects | news.ycombinator.com | 8 Nov 2023
  • Cypress can't open Tesla.com website

    1 project | news.ycombinator.com | 4 Nov 2023
  • Episode 23/37: ISR in Angular, Cypress & Playwright

    4 projects | dev.to | 21 Sep 2023