1

After excluding some components' parts into smaller UI-components I assigned them properties which are passed from parent and got with help of @Input() decorator. But it looks like Karma doesn't understand these Inputs and throws me errors like

Can't bind to 'property' since it isn't a known property of 'app-component'.

  1. If 'app-component' is an Angular component and it has 'property' input, then verify that it is part of this module.
Community
  • 1
  • 1
Sergey
  • 7,184
  • 13
  • 42
  • 85

1 Answers1

0

You need to configure your testing module correctly

  beforeEach(() => {
    TestBed.configureTestingModule({
      imports: [FormsModule],
      declarations: [AppComponent, yourComponent ..etc]
    });
  });
Sajeetharan
  • 216,225
  • 63
  • 350
  • 396