Script updates
This commit is contained in:
@@ -24,4 +24,5 @@ docker run --rm \
|
|||||||
npx serve dist -p 4173 &
|
npx serve dist -p 4173 &
|
||||||
sleep 2
|
sleep 2
|
||||||
pnpm exec playwright test
|
pnpm exec playwright test
|
||||||
|
pnpm install --config.confirmModulesPurge=false
|
||||||
'
|
'
|
||||||
|
|||||||
@@ -11,7 +11,9 @@ if [ -n "$CI" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if command -v docker >/dev/null 2>&1; then
|
if command -v docker >/dev/null 2>&1; then
|
||||||
exec bash "$(dirname "$0")/run-e2e-in-docker.sh"
|
bash "$(dirname "$0")/run-e2e-in-docker.sh"
|
||||||
|
pnpm install --config.confirmModulesPurge=false
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# No Docker: run in current environment (e.g. devcontainer; same image as CI)
|
# No Docker: run in current environment (e.g. devcontainer; same image as CI)
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ if command -v docker >/dev/null 2>&1; then
|
|||||||
sleep 2
|
sleep 2
|
||||||
pnpm exec playwright test --update-snapshots
|
pnpm exec playwright test --update-snapshots
|
||||||
'
|
'
|
||||||
|
pnpm install --config.confirmModulesPurge=false
|
||||||
else
|
else
|
||||||
echo "Updating snapshots in the current environment (matches CI when using the devcontainer)."
|
echo "Updating snapshots in the current environment (matches CI when using the devcontainer)."
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
Reference in New Issue
Block a user