Hey, I just recently upgraded to Cypress v10.9.0 t...
# help
h
Hey, I just recently upgraded to Cypress v10.9.0 to implement the new component testing for Angular. However, I can not find any advice on how to use injected service classes in component tests. My PageHeaderComponent uses the ScreenService class which is injected in the constructor of the PageHeaderComponent. Also the customMount is implemented, so the declaration is not missing 🙂 The following code gives me the error --> "NullInjectorError: No provider for ScreenService!" import {PageHeaderComponent} from "./page-header.component"; describe('PageHeaderComponent', () => { it('mounts', () => { cy.mount(
<app-header></app-header>
); }); });