(overrides: Partial<EntryPointDialogProps> = {})
| 33 | }); |
| 34 | |
| 35 | function props(overrides: Partial<EntryPointDialogProps> = {}): EntryPointDialogProps { |
| 36 | return { |
| 37 | headline: '3 ways in the index flagged', |
| 38 | rows: [ |
| 39 | { |
| 40 | key: 'symbol:p.createUser', |
| 41 | name: 'createUser', |
| 42 | where: 'src/services/userService.ts:23', |
| 43 | origin: 'entry point', |
| 44 | target: { |
| 45 | name: 'createUser', |
| 46 | qualifiedName: 'p.createUser', |
| 47 | kind: 'function', |
| 48 | filePath: 'src/services/userService.ts', |
| 49 | startLine: 23, |
| 50 | }, |
| 51 | }, |
| 52 | { key: 'symbol:p.nowhere', name: 'nowhere', where: '', origin: 'entry point' }, |
| 53 | { key: 'route:GET /users', name: 'GET /users', where: 'src/routes/users.ts:9', origin: 'route (read from the source)' }, |
| 54 | ], |
| 55 | query: '', |
| 56 | onQueryChange: vi.fn(), |
| 57 | hits: [], |
| 58 | status: 'idle', |
| 59 | message: '', |
| 60 | routeNote: '', |
| 61 | onChooseFlagged: vi.fn(), |
| 62 | onChooseHit: vi.fn(), |
| 63 | onClose: vi.fn(), |
| 64 | ...overrides, |
| 65 | }; |
| 66 | } |
| 67 | |
| 68 | async function render(given: EntryPointDialogProps): Promise<void> { |
| 69 | await act(async () => { |
no outgoing calls
no test coverage detected