| 82 | |
| 83 | // biome-ignore-all assist/source/organizeImports: bun:test must be top level |
| 84 | function createMockContext() { |
| 85 | return { |
| 86 | abortController: new AbortController(), |
| 87 | // biome-ignore-next-line @typescript-eslint/no-empty-function |
| 88 | readFileState: { get: () => undefined }, |
| 89 | getAppState: () => ({ |
| 90 | toolPermissionContext: { |
| 91 | mode: 'default', |
| 92 | alwaysAllowRules: {}, |
| 93 | sessionApprovedTools: new Set(), |
| 94 | explicitDenials: [], |
| 95 | // biome-ignore-next-line @typescript-eslint/no-empty-function |
| 96 | trackDenial: () => {}, |
| 97 | sessionApprovedCommands: new Set(), |
| 98 | commandFingerprintToToolName: new Map(), |
| 99 | }, |
| 100 | }), |
| 101 | // biome-ignore-next-line @typescript-eslint/no-empty-function |
| 102 | setAppState: () => {}, |
| 103 | } as never |
| 104 | } |
| 105 | |
| 106 | describe('/commit command', () => { |
| 107 | beforeEach(() => { |