UNPKG

pgsql-test

Version:

pgsql-test offers isolated, role-aware, and rollback-friendly PostgreSQL environments for integration tests — giving developers realistic test coverage without external state pollution

21 lines (20 loc) 616 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.sqitch = sqitch; const core_1 = require("@launchql/core"); const env_1 = require("@launchql/env"); function sqitch(cwd) { return { async seed(ctx) { const proj = new core_1.LaunchQLPackage(cwd ?? ctx.connect.cwd); if (!proj.isInModule()) return; await proj.deploy((0, env_1.getEnvOptions)({ pg: ctx.config, deployment: { fast: false } }), proj.getModuleName(), true); } }; }