79606442

Date: 2025-05-05 06:52:18
Score: 0.5
Natty:
Report link

The problem was I was declaring the TemplateStore as a provider in the component annotation. Just removed it and the test worked as expected.

@Component({
  selector: 'app-template-list-layout',
  standalone: true,
  providers: [/* REMOVED TEMPLATE STORE */],
  templateUrl: './template-list-layout.component.html',
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class TemplateListLayoutComponent {
  templateStore = inject(TemplateStore);
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: dmance