ng-mocks
ng-mocks copied to clipboard
Angular testing library for mocking components, directives, pipes, services and facilitating TestBed setup
### Description of the bug I am using ngx-translate in one of our projects. I created a wrapper around this module, which re-exports the TranslatePipe and TranslateDirective. When I use...
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [react](https://reactjs.org/) ([source](https://togithub.com/facebook/react)) | [`17.0.2` -> `18.2.0`](https://renovatebot.com/diffs/npm/react/17.0.2/18.2.0) |...
You can successfully test whether your component reacts to @Output events of a mocked component, when the @Output is an Event Emitter. But it doesn't work when the @Output of...
### Description of the bug Hi, I just migrated an angular project from version 12 to 13. Everything goes well except for ComponentStore (NGRX) tests. The observables complete directly, without...
### Describe the feature or problem you'd like to solve I'd like to see if we can improve the [Observable mocking story of ng-mocks](https://ng-mocks.sudo.eu/extra/mock-observables). The current solution of providing an...
### Describe the feature or problem you'd like to solve `MockInstance` should update all existing instances of the related class. Inspired by https://github.com/ike18t/ng-mocks/discussions/2621. ### Proposed solution To collect pointers to...
### Describe the feature or problem you'd like to solve https://stackoverflow.com/questions/72182491/angular-unit-test-flush-returns-empty-object
depends on https://github.com/facebook/jest/issues/12678
The question came from gitter: https://gitter.im/ng-mocks/community?at=6128e79d4c7be06b7986702b Hi guys. I'm trying to test a route resolver and everything seems to be working fine for the successful resolve, but for unsuccessful resolves,...