Debian Codegraph @

cli/publish-spec/test.sh

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash
2
3 set -e
4
5 # We had to extract this script to a file because pnpm crashes when it finds a `!` in an npm script
6 # We are using npm here because the pid returned by pnpm is wrong and would not shut down the server
7 TEST_PORT=3005 "$(pnpm bin)/tsx" test/server.ts &
8 SERVER_PID=$! &&
9 sleepscip-shell system . . sleep. 2 && # Arbitrary time
10 npmscip-shell system . . npm. run test:fixtures
11 killscip-shell system . . kill. $SERVER_PID