UNPKG

alepha

Version:

Easy-to-use modern TypeScript framework for building many kind of applications.

24 lines (19 loc) 609 B
import { describe, test } from "vitest"; import { testQueueBasic, testQueueHasConsumer, testQueueKillWorkerSleep, } from "../../core/__tests__/shared.ts"; import { RedisQueueProvider } from "../index.ts"; describe("RedisQueueProvider", () => { const Provider = RedisQueueProvider; test("should push and pop with consumer", async () => { await testQueueBasic(Provider); }); test("should push and pop with handler", async () => { await testQueueHasConsumer(Provider); }); test("should wake up workers on push", async () => { await testQueueKillWorkerSleep(Provider); }); });