diff --git a/extensions/telegram/src/accounts.test.ts b/extensions/telegram/src/accounts.test.ts
index 2ed1cbba227..3789536e341 100644
--- a/extensions/telegram/src/accounts.test.ts
+++ b/extensions/telegram/src/accounts.test.ts
@@ -23,7 +23,7 @@ function warningLines(): string[] {
}
function expectNoMissingDefaultWarning() {
- expect(warningLines().every((line) => !line.includes("accounts.default is missing"))).toBe(true);
+ expect(warningLines().filter((line) => line.includes("accounts.default is missing"))).toEqual([]);
}
function resolveAccountWithEnv(
diff --git a/extensions/telegram/src/bot-native-command-menu.test.ts b/extensions/telegram/src/bot-native-command-menu.test.ts
index 24cf08e5916..33ca4990253 100644
--- a/extensions/telegram/src/bot-native-command-menu.test.ts
+++ b/extensions/telegram/src/bot-native-command-menu.test.ts
@@ -69,8 +69,8 @@ describe("bot-native-command-menu", () => {
0,
);
expect(totalText).toBeLessThanOrEqual(TELEGRAM_TOTAL_COMMAND_TEXT_BUDGET);
- expect(result.commandsToRegister.every((command) => command.description.length <= 56)).toBe(
- true,
+ expect(result.commandsToRegister.filter((command) => command.description.length > 56)).toEqual(
+ [],
);
});
diff --git a/extensions/telegram/src/bot-native-commands.skills-allowlist.test.ts b/extensions/telegram/src/bot-native-commands.skills-allowlist.test.ts
index ff3204b7a3b..cdb5416a352 100644
--- a/extensions/telegram/src/bot-native-commands.skills-allowlist.test.ts
+++ b/extensions/telegram/src/bot-native-commands.skills-allowlist.test.ts
@@ -82,7 +82,7 @@ describe("registerTelegramNativeCommands skill allowlist integration", () => {
const registeredCommands = await waitForRegisteredCommands(setMyCommands);
- expect(registeredCommands.some((entry) => entry.command === "alpha_skill")).toBe(true);
- expect(registeredCommands.some((entry) => entry.command === "beta_skill")).toBe(false);
+ expect(registeredCommands.map((entry) => entry.command)).toContain("alpha_skill");
+ expect(registeredCommands.map((entry) => entry.command)).not.toContain("beta_skill");
});
});
diff --git a/extensions/telegram/src/format.test.ts b/extensions/telegram/src/format.test.ts
index 2fcd06663e0..4d6350892e1 100644
--- a/extensions/telegram/src/format.test.ts
+++ b/extensions/telegram/src/format.test.ts
@@ -116,7 +116,7 @@ describe("markdownToTelegramHtml", () => {
it("splits long multiline html text without breaking balanced tags", () => {
const chunks = splitTelegramHtmlChunks(`${"A\n".repeat(2500)}`, 4000);
expect(chunks.length).toBeGreaterThan(1);
- expect(chunks.every((chunk) => chunk.length <= 4000)).toBe(true);
+ expect(chunks.filter((chunk) => chunk.length > 4000)).toEqual([]);
expect(chunks[0]).toMatch(/^[\s\S]*<\/b>$/);
expect(chunks[1]).toMatch(/^[\s\S]*<\/b>$/);
});
@@ -128,7 +128,7 @@ describe("markdownToTelegramHtml", () => {
it("treats malformed leading ampersands as plain text when chunking html", () => {
const chunks = splitTelegramHtmlChunks(`&${"A".repeat(5000)}`, 4000);
expect(chunks.length).toBeGreaterThan(1);
- expect(chunks.every((chunk) => chunk.length <= 4000)).toBe(true);
+ expect(chunks.filter((chunk) => chunk.length > 4000)).toEqual([]);
});
it("fails loudly when tag overhead leaves no room for text", () => {