Skip to content

Commit f6d7690

Browse files
committed
try
1 parent 0d9d8be commit f6d7690

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

test-e2e.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
1-
rm -rf .cache
2-
export YARN_CACHE_FOLDER=.cache
31
npm pack
4-
cd tests/e2e/node-js
2+
cd tests/e2e
3+
export YARN_CACHE_FOLDER=.cache
4+
cd node-js
5+
rm -rf .cache
56
yarn init --yes
67
echo "Installing local bundle from TAR in NodeJS project"
78
yarn add ../../../imagekit*.tgz
89
node index.js;test_result=$?
910
echo $test_result
10-
if (($test_result != 0)); then
11+
if [[ "$test_result" != "0" ]]; then
1112
printf '%s\n' "Final bundle not working in NodeJS project" >&2
1213
exit 1
1314
fi
1415
echo "Final bundle working in NodeJS project"
1516

1617
cd ../typescript
18+
rm -rf .cache
1719
yarn init --yes
1820
yarn add typescript --dev
1921
echo "Installing local bundle from TAR in Typescript project"
2022
yarn add ../../../imagekit*.tgz
2123
npx tsc && node index.js;test_result=$?
2224
echo $test_result
23-
if (($test_result != 0)); then
25+
if [[ "$test_result" != "0" ]]; then
2426
printf '%s\n' "Final bundle not working in Typescript project" >&2
2527
exit 1
2628
fi

0 commit comments

Comments
 (0)