aboutsummaryrefslogtreecommitdiff
path: root/integration/apps/bun-create-next.sh
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-06-22 23:21:48 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-06-22 23:21:48 -0700
commit729d445b6885f69dd2c6355f38707bd42851c791 (patch)
treef87a7c408929ea3f57bbb7ace380cf869da83c0e /integration/apps/bun-create-next.sh
parent25f820c6bf1d8ec6d444ef579cc036b8c0607b75 (diff)
downloadbun-jarred/rename.tar.gz
bun-jarred/rename.tar.zst
bun-jarred/rename.zip
change the directory structurejarred/rename
Diffstat (limited to 'integration/apps/bun-create-next.sh')
-rw-r--r--integration/apps/bun-create-next.sh57
1 files changed, 0 insertions, 57 deletions
diff --git a/integration/apps/bun-create-next.sh b/integration/apps/bun-create-next.sh
deleted file mode 100644
index 4f19e535d..000000000
--- a/integration/apps/bun-create-next.sh
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/bash
-
-set -euo pipefail
-
-# The important part of this test: make sure that bun.js successfully loads
-# The most likely reason for this test to fail is that something broke in the JavaScriptCore <> bun integration
-killall -9 $(basename $BUN_BIN) || echo ""
-
-rm -rf /tmp/next-app
-mkdir -p /tmp/next-app
-$BUN_BIN create next /tmp/next-app
-
-if (($?)); then
- echo "bun create failed"
- exit 1
-fi
-
-echo "hi!" >/tmp/next-app/public/file.txt
-echo "export default 'string';" >/tmp/next-app/file.js
-
-cd /tmp/next-app
-BUN_CRASH_WITHOUT_JIT=1 $BUN_BIN dev --port 8087 &
-sleep 0.1
-curl --fail -Ss http://localhost:8087/
-
-if [[ "$(curl --fail -sS http://localhost:8087/file.txt)" != "hi!" ]]; then
- echo ""
- echo ""
- echo ""
- echo "ERR: Expected 'hi!', got '$(curl --fail -sS http://localhost:8087/file.txt)'"
- killall -9 $(basename $BUN_BIN) || echo ""
- exit 1
-fi
-
-if [[ "$(curl --fail -sS http://localhost:8087/file.js)" != *"string"* ]]; then
- echo ""
- echo ""
- echo ""
- echo "ERR: Expected file to contain string got '$(curl --fail -sS http://localhost:8087/file.js)'"
- killall -9 $(basename $BUN_BIN) || echo ""
- exit 1
-fi
-
-# very simple HMR test
-echo "export default 'string';" >/tmp/next-app/file2.js
-sleep 0.1
-
-if [[ "$(curl --fail -sS http://localhost:8087/file2.js)" != *"string"* ]]; then
- echo ""
- echo ""
- echo ""
- echo "ERR: Expected file to contain string got '$(curl --fail -sS http://localhost:8087/file2.js)'"
- killall -9 $(basename $BUN_BIN) || echo ""
- exit 1
-fi
-
-killall -9 $(basename $BUN_BIN) || echo ""