ng-mocks VS angular-testing-library

Compare ng-mocks vs angular-testing-library and see what are their differences.

ng-mocks

Angular testing library for mocking components, directives, pipes, services and facilitating TestBed setup (by help-me-mom)

angular-testing-library

🐙 Simple and complete Angular testing utilities that encourage good testing practices (by testing-library)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
ng-mocks angular-testing-library
9 5
995 678
1.7% 2.4%
10.0 7.3
8 days ago 10 days ago
TypeScript TypeScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

ng-mocks

Posts with mentions or reviews of ng-mocks. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-20.

angular-testing-library

Posts with mentions or reviews of angular-testing-library. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-04-08.

What are some alternatives?

When comparing ng-mocks and angular-testing-library you can also consider the following projects:

spectator - 🦊 🚀 A Powerful Tool to Simplify Your Angular Tests

jest-mock-extended - Type safe mocking extensions for Jest https://www.npmjs.com/package/jest-mock-extended

eslint-plugin-testing-library - ESLint plugin to follow best practices and anticipate common mistakes when writing tests with Testing Library

dayjs - ⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API

storybook - Storybook is a frontend workshop for building UI components and pages in isolation. Made for UI development, testing, and documentation.

ts-mockito - Mocking library for TypeScript

user-event - 🐕 Simulate user events

jest - Super-fast alternative for babel-jest or ts-jest without type checking. Please use main repository for issues

atl-good-testing-practices

javascript-testing-best-practices - 📗🌐 🚢 Comprehensive and exhaustive JavaScript & Node.js testing best practices (July 2023)

common-testing-library-mistakes - Showcase for common mistakes when using testing-library