mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-03 16:46:00 +00:00
16 lines
533 B
TypeScript
16 lines
533 B
TypeScript
import { afterAll, beforeAll, describe } from "bun:test";
|
|
import * as astro from "./astro.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("astro adapter", () => {
|
|
adapterTestSuite(bunTestRunner, {
|
|
makeApp: astro.getApp,
|
|
makeHandler: (c, a) => (request: Request) => astro.serve(c, a)({ request }),
|
|
});
|
|
});
|