fix: test runner path

This commit is contained in:
2024-06-12 15:43:17 -04:00
parent 0a859e0f16
commit e0a735ef0a

13
src/testRunner.ts Normal file
View File

@@ -0,0 +1,13 @@
import { $ } from "zx";
const tursoProcess = $`turso dev --port 3000`.nothrow();
process.env.TURSO_URL = "http://127.0.0.1:3000";
process.env.TURSO_AUTH_TOKEN = "asd";
await $`bun db:migrate`.nothrow();
await $({
verbose: true,
quote: (arg) => arg,
})`FORCE_COLOR=1 bun test ${process.argv.slice(2).join(" ")}`.nothrow();
await tursoProcess.kill("SIGINT");