mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-15 20:17:22 +00:00
* refactored adapters to run test suites * fix bun version for tests * added missing adapter tests and refactored examples to use `bknd.config.ts` where applicable
16 lines
483 B
TypeScript
16 lines
483 B
TypeScript
import { afterAll, beforeAll, describe } from "bun:test";
|
|
import * as bun from "./bun.adapter";
|
|
import { disableConsoleLog, enableConsoleLog } from "core/utils";
|
|
import { adapterTestSuite } from "adapter/adapter-test-suite";
|
|
import { bunTestRunner } from "adapter/bun/test";
|
|
|
|
beforeAll(disableConsoleLog);
|
|
afterAll(enableConsoleLog);
|
|
|
|
describe("bun adapter", () => {
|
|
adapterTestSuite(bunTestRunner, {
|
|
makeApp: bun.createApp,
|
|
makeHandler: bun.createHandler,
|
|
});
|
|
});
|