File: test.sh

package info (click to toggle)
golang-github-withfig-autocomplete-tools 0.0~git20241029.747689a%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,456 kB
  • sloc: javascript: 2,543; python: 734; sh: 20; makefile: 13
file content (11 lines) | stat: -rwxr-xr-x 365 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash

set -e

# We had to extract this script to a file because pnpm crashes when it finds a `!` in an npm script
# We are using npm here because the pid returned by pnpm is wrong and would not shut down the server 
TEST_PORT=3005 "$(pnpm bin)/tsx" test/server.ts & 
SERVER_PID=$! &&
sleep 2 && # Arbitrary time
npm run test:fixtures
kill $SERVER_PID