We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import { CommonModule } from "@angular/common"; import { ChangeDetectionStrategy, Component } from "@angular/core"; import { TestBed } from "@angular/core/testing"; import { ActivatedRoute, RouterModule } from "@angular/router"; import { MockBuilder, MockProvider } from "ng-mocks"; @Component({ standalone: true, imports: [CommonModule, RouterModule], template: ` <a [routerLink]="['link']">Link</a> `, changeDetection: ChangeDetectionStrategy.OnPush }) export class MyComponent { constructor(public activatedRoute: ActivatedRoute) {} } describe("my sandbox", () => { // beforeEach(() => // MockBuilder(MyComponent).provide(MockProvider(ActivatedRoute)) // ); beforeEach(() => MockBuilder(MyComponent, ActivatedRoute)); it("should create", () => { const fixture = TestBed.createComponent(MyComponent); const component = fixture.componentInstance; expect(component).toBeTruthy(); }); });
The text was updated successfully, but these errors were encountered:
fix(MockBuilder): better detection of provided dependencies help-me-m…
4e9aeab
…om#3635
Merge pull request #3688 from satanTime/issues/3635
004f648
fix(MockBuilder): better detection of provided dependencies #3635
v14.2.3 has been released and contains a fix for the issue. Feel free to reopen the issue or to submit a new one if you meet any problems.
Sorry, something went wrong.
satanTime
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: