UNPKG

bknd

Version:

Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.

12 lines (11 loc) 681 B
import type { TestRunner } from "../core/test"; import type { BkndConfig, DefaultArgs, FrameworkOptions, RuntimeOptions } from "./index"; import type { App } from "../App"; export declare function adapterTestSuite<Config extends BkndConfig = BkndConfig, Args extends DefaultArgs = DefaultArgs>(testRunner: TestRunner, { makeApp, makeHandler, label, overrides, }: { makeApp: (config: Config, args?: Args, opts?: RuntimeOptions | FrameworkOptions) => Promise<App>; makeHandler?: (config?: Config, args?: Args, opts?: RuntimeOptions | FrameworkOptions) => (request: Request) => Promise<Response>; label?: string; overrides?: { dbUrl?: string; }; }): void;