diff options
author | 2022-02-24 19:16:48 -0800 | |
---|---|---|
committer | 2022-02-24 19:16:48 -0800 | |
commit | a9b32275f15e9f1d557c8fe8422be2f1570f831e (patch) | |
tree | 79ce3aecf17565e711e2c62caa7a0f2774799370 | |
parent | d1eba784b9d902ac6043c1b76e64382d43fbc261 (diff) | |
download | bun-a9b32275f15e9f1d557c8fe8422be2f1570f831e.tar.gz bun-a9b32275f15e9f1d557c8fe8422be2f1570f831e.tar.zst bun-a9b32275f15e9f1d557c8fe8422be2f1570f831e.zip |
[bun install] Add integration test for bin links
-rw-r--r-- | integration/apps/bun-install.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/integration/apps/bun-install.sh b/integration/apps/bun-install.sh index 33934f19c..dd4083e33 100644 --- a/integration/apps/bun-install.sh +++ b/integration/apps/bun-install.sh @@ -5,7 +5,7 @@ set -euo pipefail dir=$(mktemp -d --suffix=bun-install-test-1) cd $dir -${NPM_CLIENT:-$(which bun)} add react react-dom @types/react +${NPM_CLIENT:-$(which bun)} add react react-dom @types/react @babel/parser esbuild echo "console.log(typeof require(\"react\").createElement);" >index.js chmod +x index.js @@ -25,6 +25,12 @@ chmod +x index.js JS_RUNTIME=${JS_RUNTIME:-"$(which bun)"} +# If this fails to run, it means we didn't link @babel/parser correctly +realpath -e ./node_modules/.bin/parser + +# If this fails to run, it means we didn't link esbuild correctly +./node_modules/.bin/esbuild --version >/dev/null + if [ "$JS_RUNTIME" == "node" ]; then result="$(node ./index.js)" fi |