// standalone leaf — inputs only
const fixture = renderComponentFixture(MyComponent, { inputs: { Disabled: true } });
// module-declared component configured via inputs
const fixture = renderComponentFixture(FilterBuilderComponent, {
imports: [CommonModule, FormsModule],
declarations: [FilterBuilderComponent, FilterGroupComponent, FilterRuleComponent],
inputs: { fields: FIELDS },
});
(For a component that needs projected children, use renderTemplate instead.)
Create and render a component into the jsdom DOM in the zoneless-correct order: (optionally configure a testing module), apply
@Inputs viasetInput, run any imperativesetup, then a singledetectChanges(). Returns theComponentFixture.