Fix running integration tests on macOS
This commit is contained in:
committed by
Jay Linski
parent
cb828aa282
commit
2afecb25db
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -13,4 +13,4 @@ for i in dist/*-test.js ; do
|
||||
echo "----------------------"
|
||||
node "$i"
|
||||
echo "Success"
|
||||
done
|
||||
done
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -13,4 +13,4 @@ for i in dist/*-test.js ; do
|
||||
echo "----------------------"
|
||||
node "$i"
|
||||
echo "Success"
|
||||
done
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user