MCPcopy Index your code
hub / github.com/TanStack/table / setFixtureSignalInputs

Function setFixtureSignalInputs

packages/angular-table/tests/test-utils.ts:11–22  ·  view source on GitHub ↗
(
  componentFixture: ComponentFixture<T>,
  inputs: ToSignalInputUpdatableMap<T>,
  options: { detectChanges: boolean } = { detectChanges: true }
)

Source from the content-addressed store, hash-verified

9}
10
11export function setFixtureSignalInputs<T extends NonNullable<unknown>>(
12 componentFixture: ComponentFixture<T>,
13 inputs: ToSignalInputUpdatableMap<T>,
14 options: { detectChanges: boolean } = { detectChanges: true }
15) {
16 for (const inputKey in inputs) {
17 componentFixture.componentRef.setInput(inputKey, inputs[inputKey])
18 }
19 if (options.detectChanges) {
20 componentFixture.detectChanges()
21 }
22}
23
24export function setFixtureSignalInput<
25 T extends NonNullable<unknown>,

Callers 4

lazy-init.test.tsFile · 0.90
setFixtureSignalInputFunction · 0.85

Calls 1

setInputMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…