Module

x/kysely_postgrs_js_dialect/testing.ts>setupTesting

Kysely dialect for PostgreSQL using the Postgres.js client.
function setupTesting
import { setupTesting } from "https://dotland.deno.dev/x/kysely_postgrs_js_dialect@v0.27.3/testing.ts";

Setup a database for testing.

Examples

Example 1

import { stub } from "https://deno.land/std@0.210.0/testing/mock.ts";
const { beforeEachFn, afterEachFn } = setupTesting(stub)

Parameters

stub: (...args: unknown[]) => Stub
  • The stub to use for wrapping the transaction.