Skip to main content
Module

x/kysely_deno_postgres_dialect/testing.ts>setupTesting

Kysely dialect for PostgreSQL using the deno-postgres client.
Latest
function setupTesting
import { setupTesting } from "https://deno.land/x/kysely_deno_postgres_dialect@v0.27.1/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.