12 lines
440 B
TypeScript
12 lines
440 B
TypeScript
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;
|