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
20 lines (19 loc) • 590 B
JavaScript
import { LaunchQLPackage } from '@launchql/core';
import { getEnvOptions } from '@launchql/env';
export function launchql(cwd, cache = false) {
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: true,
usePlan: true,
cache
}
}), proj.getModuleName());
}
};
}