feat: rewire entry point to new architecture

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude
2026-07-28 18:12:48 +07:00
parent ea48e8fc03
commit 234ca7b14c
11 changed files with 180 additions and 150 deletions
+4 -1
View File
@@ -36,7 +36,7 @@ const mockRequireAuth = mock(
Response.json({ error: 'Unauthorized' }, { status: 401 }),
);
mock.module('../src/bot', () => ({
mock.module('../src/interfaces/bot/handler', () => ({
startBot: mockStartBot,
}));
@@ -65,6 +65,9 @@ mock.module('../src/routes/auth', () => ({
mock.module('../src/utils/rateLimit', () => ({
cleanupRateLimitCache: mock(),
clearRateLimitCache: mock(),
checkRateLimit: mock(() => true),
getRateLimitStats: mock(() => ({})),
withRateLimit: <T extends Request>(
handler: (req: T) => Promise<Response>,
): ((req: T) => Promise<Response>) => handler,