chore(lint): enable additional cleanup rules

This commit is contained in:
Peter Steinberger
2026-04-18 20:00:26 +01:00
parent 4fa961d4f1
commit 155162a8cd
22 changed files with 39 additions and 42 deletions

View File

@@ -26,9 +26,7 @@ describe("registerTelegramNativeCommands skill allowlist integration", () => {
resetNativeCommandMenuMocks();
resetPluginCommandMocks();
await Promise.all(
tempDirs
.splice(0, tempDirs.length)
.map((dir) => fs.rm(dir, { recursive: true, force: true })),
tempDirs.splice(0).map((dir) => fs.rm(dir, { recursive: true, force: true })),
);
});

View File

@@ -256,11 +256,9 @@ describe("createTelegramBot channel_post media", () => {
});
sendMessageSpy.mockClear();
replySpy.mockClear();
const fetchSpy = vi
.spyOn(globalThis, "fetch")
.mockImplementation(async () =>
Promise.reject(new Error("MediaFetchError: Failed to fetch media")),
);
const fetchSpy = vi.spyOn(globalThis, "fetch").mockImplementation(async () => {
throw new Error("MediaFetchError: Failed to fetch media");
});
try {
createTelegramBot({ token: "tok" });