Skip to content

Commit

Permalink
Fix running integration tests on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
mohd-akram authored and jaylinski committed Sep 20, 2023
1 parent cb828aa commit 2afecb2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/integration/multi-nodejs-test/test.sh
Expand Up @@ -16,7 +16,7 @@ unset npm_config_prefix
echo "Handlebars should be able to run in various versions of NodeJS"
for node_version_to_test in 12 14 16 18; do

rm target node_modules package-lock.json -rf
rm -rf target node_modules package-lock.json
mkdir target

nvm install "$node_version_to_test"
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/rollup-test/test.sh
Expand Up @@ -3,9 +3,9 @@
set -e

# Cleanup: package-lock and "npm ci" is not working with local dependencies
rm dist package-lock.json -rf
rm -rf dist package-lock.json
npm install
npm run build

node dist/bundle.js
echo "Success"
echo "Success"
4 changes: 2 additions & 2 deletions tests/integration/webpack-babel-test/test.sh
Expand Up @@ -3,7 +3,7 @@
set -e

# Cleanup: package-lock and "npm ci" is not working with local dependencies
rm dist package-lock.json -rf
rm -rf dist package-lock.json
npm install --legacy-peer-deps
npm run build

Expand All @@ -13,4 +13,4 @@ for i in dist/*-test.js ; do
echo "----------------------"
node "$i"
echo "Success"
done
done
4 changes: 2 additions & 2 deletions tests/integration/webpack-test/test.sh
Expand Up @@ -3,7 +3,7 @@
set -e

# Cleanup: package-lock and "npm ci" is not working with local dependencies
rm dist package-lock.json -rf
rm -rf dist package-lock.json
npm install --legacy-peer-deps
npm run build

Expand All @@ -13,4 +13,4 @@ for i in dist/*-test.js ; do
echo "----------------------"
node "$i"
echo "Success"
done
done

0 comments on commit 2afecb2

Please sign in to comment.