Skip to content

Commit d1ae7a2

Browse files
b1rdmaniaclaude
andcommitted
fix: add setMyCommands mock to telegram tests; fix husky hook to restage formatted files
- telegram.test.ts: add setMyCommands vi.fn() to the mock bot api so connect() doesn't throw - .husky/pre-commit: add 'git add -u' after format:fix so prettier-reformatted files are included in the commit rather than left as unstaged changes (was causing CI format checks to fail) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 1d55a21 commit d1ae7a2

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
npm run format:fix
2+
git add -u

src/channels/telegram.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ vi.mock('grammy', () => ({
3434
api = {
3535
sendMessage: vi.fn().mockResolvedValue(undefined),
3636
sendChatAction: vi.fn().mockResolvedValue(undefined),
37+
setMyCommands: vi.fn().mockResolvedValue(undefined),
3738
};
3839

3940
constructor(token: string) {

0 commit comments

Comments
 (0)