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
|
- runtime: bun
|
||||||
task: build
|
task: build
|
||||||
command: bunx tsc -p tsconfig.json
|
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:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
@@ -230,7 +230,7 @@ describe("telegram media groups", () => {
|
|||||||
expectedCalls: number,
|
expectedCalls: number,
|
||||||
) => {
|
) => {
|
||||||
await expect
|
await expect
|
||||||
.poll(() => replySpy.mock.calls.length, { timeout: 2000 })
|
.poll(() => replySpy.mock.calls.length, { timeout: 10_000 })
|
||||||
.toBe(expectedCalls);
|
.toBe(expectedCalls);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -302,7 +302,7 @@ describe("telegram media groups", () => {
|
|||||||
expect(payload.MediaPaths).toHaveLength(2);
|
expect(payload.MediaPaths).toHaveLength(2);
|
||||||
|
|
||||||
fetchSpy.mockRestore();
|
fetchSpy.mockRestore();
|
||||||
}, 2000);
|
}, 10_000);
|
||||||
|
|
||||||
it("processes separate media groups independently", async () => {
|
it("processes separate media groups independently", async () => {
|
||||||
const { createTelegramBot } = await import("./bot.js");
|
const { createTelegramBot } = await import("./bot.js");
|
||||||
@@ -359,7 +359,7 @@ describe("telegram media groups", () => {
|
|||||||
expect(replySpy).toHaveBeenCalledTimes(2);
|
expect(replySpy).toHaveBeenCalledTimes(2);
|
||||||
|
|
||||||
fetchSpy.mockRestore();
|
fetchSpy.mockRestore();
|
||||||
}, 2000);
|
}, 10_000);
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("telegram location parsing", () => {
|
describe("telegram location parsing", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user