Skip to content

Commit

Permalink
check chromium downloaded
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfranklin authored and mathiasbynens committed Jun 25, 2020
1 parent 1b4e7a1 commit b0c895f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/test-install.sh
Expand Up @@ -4,14 +4,16 @@ set -e
# Pack the module into a tarball
npm pack
tarball="$(realpath puppeteer-*.tgz)"
cd "$(mktemp -d)"
TMPDIR="$(mktemp -d)"
cd $TMPDIR
# Check we can install from the tarball.
# This emulates installing from npm and ensures that:
# 1. we publish the right files in the `files` list from package.json
# 2. The install script works and correctly exits without errors
# 3. Requiring Puppeteer from Node works.
npm install --loglevel silent "${tarball}"
node --eval="require('puppeteer')"
ls $TMPDIR/node_modules/puppeteer/.local-chromium/

# Again for Firefox
TMPDIR="$(mktemp -d)"
Expand Down

0 comments on commit b0c895f

Please sign in to comment.