Files
langgraphjs-api/scripts/test.mjs
T
2025-01-14 15:14:34 +01:00

9 lines
367 B
JavaScript
Executable File

#!/bin/bash
import "./build.mjs";
await spinner("Clearing API", () => fs.remove("tests/graphs/.langgraph_api"));
const server = `node dist/cli/cli.mjs dev --no-browser --config ./tests/graphs/langgraph.json`;
const test = `npx -y wait-port -t 3000 localhost:9123 && vitest run`;
await $`npx -y concurrently -k -s "command-test" -n "server,test" ${server} ${test}`;