This commit is contained in:
Boki 2026-10-20 18:36:19 -04:00
parent 879e9b4228
commit c3cb36c8d6
51 changed files with 2290 additions and 1467 deletions

12
scripts/test-postgres.ts Normal file
View file

@ -0,0 +1,12 @@
const url = process.env.PIPELINE_TEST_DATABASE_URL;
if (!url || !new URL(url).pathname.startsWith('/stock_bot_safety')) {
throw new Error(
'Set PIPELINE_TEST_DATABASE_URL to a disposable stock_bot_safety database; tests create/drop isolated schemas'
);
}
const child = Bun.spawn([process.execPath, 'test', 'test/postgres/'], {
stdin: 'inherit',
stdout: 'inherit',
stderr: 'inherit',
});
process.exitCode = await child.exited;