aboutsummaryrefslogtreecommitdiff
path: root/integration/apps/bun-create-react.sh
blob: 3de1f5c09a9dbb99a8d10f28a3c44bc3ce87bb48 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

killall -9 $(basename $BUN_BIN) || echo "";

rm -rf /tmp/react-app;
mkdir -p /tmp/react-app;
$BUN_BIN create react /tmp/react-app;
cd /tmp/react-app;
$BUN_BIN --port 8087 &
sleep 0.005

curl --fail http://localhost:8087/ && killall -9 $(basename $BUN_BIN) && echo "✅ bun create react passed."
exit $?