mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-02 08:06:00 +00:00
3f26c45dd9
* 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,
|
|
});
|
|
});
|