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
18 lines (17 loc) • 518 B
JavaScript
import { LaunchQLPackage } from '@launchql/core';
import { getEnvOptions } from '@launchql/env';
export function sqitch(cwd) {
return {
async seed(ctx) {
const proj = new LaunchQLPackage(cwd ?? ctx.connect.cwd);
if (!proj.isInModule())
return;
await proj.deploy(getEnvOptions({
pg: ctx.config,
deployment: {
fast: false
}
}), proj.getModuleName(), true);
}
};
}