Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/kysely_postgrs_js_dialect/src/testing/utils.ts>setupTesting

Kysely dialect for PostgreSQL using the Postgres.js client.
Go to Latest
function setupTesting
import { setupTesting } from "https://deno.land/x/kysely_postgrs_js_dialect@v0.27.3/src/testing/utils.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.