The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import {
closeQueueConnections,
waitForAllJobsToFinish,
} from 'test/integration/utils/wait-for-all-jobs-to-finish.util';
const WAIT_FOR_JOBS_HOOK_TIMEOUT_MS = 150_000;
beforeAll(async () => {
await waitForAllJobsToFinish();
}, WAIT_FOR_JOBS_HOOK_TIMEOUT_MS);
afterEach(async () => {
jest.useRealTimers();
await waitForAllJobsToFinish();
}, WAIT_FOR_JOBS_HOOK_TIMEOUT_MS);
afterAll(async () => {
await closeQueueConnections();
}, WAIT_FOR_JOBS_HOOK_TIMEOUT_MS);