chore: sync ci tasks and relax telegram test timeouts

This commit is contained in:
Peter Steinberger
2026-01-08 09:09:33 +01:00
parent 2450af26ec
commit 908a7e4fcb
2 changed files with 3 additions and 12 deletions

View File

@@ -32,15 +32,6 @@ jobs:
- runtime: bun
task: build
command: bunx tsc -p tsconfig.json
- runtime: bun
task: lint
command: bunx biome check src
- runtime: bun
task: test
command: bunx vitest run
- runtime: bun
task: build
command: bunx tsc -p tsconfig.json
steps:
- name: Checkout
uses: actions/checkout@v4

View File

@@ -230,7 +230,7 @@ describe("telegram media groups", () => {
expectedCalls: number,
) => {
await expect
.poll(() => replySpy.mock.calls.length, { timeout: 2000 })
.poll(() => replySpy.mock.calls.length, { timeout: 10_000 })
.toBe(expectedCalls);
};
@@ -302,7 +302,7 @@ describe("telegram media groups", () => {
expect(payload.MediaPaths).toHaveLength(2);
fetchSpy.mockRestore();
}, 2000);
}, 10_000);
it("processes separate media groups independently", async () => {
const { createTelegramBot } = await import("./bot.js");
@@ -359,7 +359,7 @@ describe("telegram media groups", () => {
expect(replySpy).toHaveBeenCalledTimes(2);
fetchSpy.mockRestore();
}, 2000);
}, 10_000);
});
describe("telegram location parsing", () => {