| 4 | describe("TypeScript types", () => { |
| 5 | test("form creation and submission", () => { |
| 6 | interface FormValues { |
| 7 | foo: string; |
| 8 | bar?: number; |
| 9 | } |
| 10 | |
| 11 | const onSubmit = jest.fn((values: FormValues) => { |
| 12 | // Verify the submitted values have the correct type |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…