safety
This commit is contained in:
parent
879e9b4228
commit
c3cb36c8d6
51 changed files with 2290 additions and 1467 deletions
12
scripts/test-postgres.ts
Normal file
12
scripts/test-postgres.ts
Normal 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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue