chore: sync ci tasks and relax telegram test timeouts
This commit is contained in:
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@@ -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
|
||||
|
||||
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user