fix: persistencia dinamica em configs e filtro de tabelas ativas status publish

This commit is contained in:
Andre RDS
2026-11-27 09:00:08 -03:00
parent 9e6c38ff37
commit cc6a77612b
16 changed files with 554 additions and 144 deletions
+5 -5
View File
@@ -3,7 +3,7 @@ import { TelegramNotifier } from "../../src/infrastructure/telegram/telegram-not
describe("TelegramNotifier", () => {
let notifier: TelegramNotifier;
let fetchMock: typeof fetch;
let fetchMock: any;
beforeEach(() => {
fetchMock = async (url: string, options: any) => {
@@ -47,7 +47,7 @@ describe("TelegramNotifier", () => {
const n = new TelegramNotifier({
botToken: "123456:TEST",
chatId: "-1001111111111",
fetchFn: mockFetch,
fetchFn: mockFetch as any,
delayMs: 0,
});
@@ -74,7 +74,7 @@ describe("TelegramNotifier", () => {
const n = new TelegramNotifier({
botToken: "123456:TEST",
chatId: "-1001234567890",
fetchFn: mockFetch,
fetchFn: mockFetch as any,
delayMs: 0,
maxRetries: 3,
});
@@ -98,7 +98,7 @@ describe("TelegramNotifier", () => {
const n = new TelegramNotifier({
botToken: "123456:TEST",
chatId: "-1001234567890",
fetchFn: mockFetch,
fetchFn: mockFetch as any,
delayMs: 0,
maxRetries: 3,
});
@@ -121,7 +121,7 @@ describe("TelegramNotifier", () => {
const n = new TelegramNotifier({
botToken: "123456:TEST",
chatId: "-1001234567890",
fetchFn: mockFetch,
fetchFn: mockFetch as any,
delayMs: 0,
});