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

17 lines (16 loc) 583 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.sqitch = sqitch; const types_1 = require("@launchql/types"); const core_1 = require("@launchql/core"); function sqitch(cwd) { return { async seed(ctx) { const proj = new core_1.LaunchQLProject(cwd ?? ctx.connect.cwd); if (!proj.isInModule()) return; const opts = (0, types_1.getEnvOptions)({ pg: ctx.config }); await (0, core_1.deploy)(opts, proj.getModuleName(), ctx.config.database, proj.modulePath); } }; }