-
-
Notifications
You must be signed in to change notification settings - Fork 101
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Hi,
I encounter an issue on the angular unit test when I want to set a value to an input.
Inside my component, i've only one input :
export class Component {
items = input<Item[]>([]);
}
Inside my test I want to set the items value with the setInput()
method.
fixture.componentRef.setInput('items', items);
But this issue is encountered when I use this method.
Error: NG0303: Can't set value of the 'items' input on the 'r' component. Make sure that the 'items' property is annotated with @input() or a mapped @input('items') exists.
I'm using :
- ng-mock: 14.13.2
- jasmine: 5.1.4
- Angular: 19
StreetCube, neilsoult, KernelFolla, cheng93 and shirblc
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working