MCPcopy Index your code
hub / github.com/angular/angular / TestCmp

Class TestCmp

packages/forms/signals/test/node/parse_errors.spec.ts:23–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21describe('parse errors', () => {
22 it('should only pass parse errors through to the originating custom control', async () => {
23 @Component({
24 imports: [TestNumberInput, FormField],
25 template: `
26 <test-number-input id="input1" [formField]="f" />
27 <test-number-input id="input2" [formField]="f" />
28 `,
29 })
30 class TestCmp {
31 state = signal<number | null>(5);
32 f = form(this.state);
33 }
34
35 const testEl = (await act(() => TestBed.createComponent(TestCmp))).nativeElement as HTMLElement;
36 const input1: HTMLInputElement = testEl.querySelector('#input1 input')!;

Callers

nothing calls this directly

Calls 5

ComponentInterface · 0.90
signalFunction · 0.90
formFunction · 0.85
transformedValueFunction · 0.85
validateFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…