diff options
-rw-r--r-- | test/apps/bun-create-react.sh | 3 | ||||
-rw-r--r-- | test/apps/bun-dev-index-html.sh | 2 | ||||
-rw-r--r-- | test/apps/bun-dev.sh | 2 | ||||
-rw-r--r-- | test/scripts/browser.js | 1 |
4 files changed, 4 insertions, 4 deletions
diff --git a/test/apps/bun-create-react.sh b/test/apps/bun-create-react.sh index 2b986134c..41552dee5 100644 --- a/test/apps/bun-create-react.sh +++ b/test/apps/bun-create-react.sh @@ -6,14 +6,13 @@ 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 & +BUN_CRASH_WITHOUT_JIT=1 $BUN_BIN dev --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." diff --git a/test/apps/bun-dev-index-html.sh b/test/apps/bun-dev-index-html.sh index eef41f78b..01d99b71a 100644 --- a/test/apps/bun-dev-index-html.sh +++ b/test/apps/bun-dev-index-html.sh @@ -21,7 +21,7 @@ echo $static_content >"$dir/static.txt" echo $css_not_transpiled_content >"$dir/css_not_transpiled_content.css" cd $dir -$BUN_BIN --port 8087 & +$BUN_BIN dev --port 8087 & sleep 0.005 if [[ "$(curl --fail -sS http://localhost:8087/)" != "$index_content" ]]; then diff --git a/test/apps/bun-dev.sh b/test/apps/bun-dev.sh index f2d76d028..fd2447e93 100644 --- a/test/apps/bun-dev.sh +++ b/test/apps/bun-dev.sh @@ -18,7 +18,7 @@ echo $bacon_content >"$dir/public/bacon.html" cd $dir -$BUN_BIN --port 8087 & +$BUN_BIN dev --port 8087 & sleep 0.005 if [ "$(curl --fail -sS http://localhost:8087/)" != "$index_content" ]; then diff --git a/test/scripts/browser.js b/test/scripts/browser.js index 479a55c9c..bd0bc23de 100644 --- a/test/scripts/browser.js +++ b/test/scripts/browser.js @@ -9,6 +9,7 @@ const serverURL = process.env.TEST_SERVER_URL || "http://localhost:8080"; const USE_EXISTING_PROCESS = process.env.USE_EXISTING_PROCESS || false; const DISABLE_HMR = !!process.env.DISABLE_HMR; const bunFlags = [ + "dev", `--origin=${serverURL}`, DISABLE_HMR && "--disable-hmr", ].filter(Boolean); |