Ho do we set input signals with Angular component tests in cypress?

Discussão em 'Angular' iniciado por narayan nyaupane, Outubro 14, 2024.

  1. For auditId and paragraphId, I am getting Type 'number' is not assignable to type 'InputSignal'. error. In the component i have used input like this

    auditId = input.required<number>();
    paragraphId = input.required<number>();



    cy.mount(TestComponent, {
    imports: [ HttpClientTestingModule],
    componentProperties: {
    auditId: 1,
    paragraphId: 1,
    },
    });


    Since the input signals are not writable, how can we set them in the test? Please suggest some ideas. Thank you.

    Continue reading...

Compartilhe esta Página