Ng Mocks

screenshot of Ng Mocks
angular

Ng Mocks

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

Overview:

Ng-mocks is a library that facilitates Angular testing by providing the ability to mock components, directives, pipes, modules, services, and tokens. It aims to simplify testing by reducing boilerplate code and providing a simple interface to access declarations. Ng-mocks has been tested and is compatible with multiple versions of Angular, Jasmine, Jest, and Ivy.

Features:

  • Mock Components: Ng-mocks allows you to mock Angular components for easier testing.
  • Mock Directives: You can also mock Angular directives using ng-mocks.
  • Mock Pipes: Ng-mocks provides the ability to mock Angular pipes in your tests.
  • Mock Modules: With ng-mocks, you can mock entire Angular modules to simplify testing.
  • Mock Services: Ng-mocks allows you to easily mock Angular services in your tests.
  • Mock Tokens: You can mock Angular tokens using ng-mocks to facilitate testing.
  • Boilerplate Reduction: Ng-mocks aims to reduce boilerplate code in your tests for increased efficiency.
  • Simple Interface: It provides a simple interface to access declarations and make testing easier.
angular
Angular

Angular is a TypeScript-based open-source framework by Google for building dynamic single-page applications and cross-platform mobile apps with MVC architecture and a rich set of features.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.

webpack
Webpack

Webpack is a popular open-source module bundler for JavaScript applications that bundles and optimizes the code and its dependencies for production-ready deployment. It can also be used to transform other types of assets such as CSS, images, and fonts.