(name: string, value: string)
| 27 | } |
| 28 | |
| 29 | function makeEvent(name: string, value: string) { |
| 30 | // target.type is omitted → onChange uses getEventValue(event) instead of |
| 31 | // getFieldValue(field._f), which avoids needing a real DOM element. |
| 32 | return { type: 'change', target: { name, value } } as unknown as Event; |
| 33 | } |
| 34 | |
| 35 | // --------------------------------------------------------------------------- |
| 36 | // Bench setup |
no outgoing calls
no test coverage detected
searching dependent graphs…