diff options
author | 2022-06-22 23:21:48 -0700 | |
---|---|---|
committer | 2022-06-22 23:21:48 -0700 | |
commit | 729d445b6885f69dd2c6355f38707bd42851c791 (patch) | |
tree | f87a7c408929ea3f57bbb7ace380cf869da83c0e /test/apps/bun-create-react.sh | |
parent | 25f820c6bf1d8ec6d444ef579cc036b8c0607b75 (diff) | |
download | bun-jarred/rename.tar.gz bun-jarred/rename.tar.zst bun-jarred/rename.zip |
change the directory structurejarred/rename
Diffstat (limited to 'test/apps/bun-create-react.sh')
-rw-r--r-- | test/apps/bun-create-react.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/apps/bun-create-react.sh b/test/apps/bun-create-react.sh new file mode 100644 index 000000000..2b986134c --- /dev/null +++ b/test/apps/bun-create-react.sh @@ -0,0 +1,20 @@ +#!/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 + + +if (($?)); then + echo "bun create failed" + exit 1 +fi + +cd /tmp/react-app +BUN_CRASH_WITHOUT_JIT=1 $BUN_BIN --port 8087 & +sleep 0.005 + +curl --fail http://localhost:8087/ && curl --fail http://localhost:8087/src/index.jsx && killall -9 $(basename $BUN_BIN) && echo "✅ bun create react passed." +exit $? |