mirror of
https://github.com/langchain-ai/langgraphjs-api.git
synced 2026-07-01 13:58:12 -04:00
19 lines
489 B
JavaScript
19 lines
489 B
JavaScript
#!/usr/bin/env bun
|
|
import { parseArgs } from "util";
|
|
import { $ } from "./utils.mjs";
|
|
|
|
const { values, positionals } = parseArgs({
|
|
options: { config: { short: "c", type: "string" } },
|
|
allowPositionals: true,
|
|
});
|
|
|
|
await $`rm -rf tests/graphs/.langgraph_api`;
|
|
await Promise.race([
|
|
$`yarn tsx ./tests/utils.server.mts ${values.config}`,
|
|
(async () => {
|
|
await $`bun x wait-port -t 24000 localhost:2024`;
|
|
await $`yarn vitest run ${positionals}`;
|
|
process.exit(0);
|
|
})(),
|
|
]);
|