From dd180a0907666912c4bee8ebc317f2fb08511af2 Mon Sep 17 00:00:00 2001 From: Luca Greco Date: Mon, 9 Apr 2018 14:18:37 +0200 Subject: [PATCH] chore(test): Fixed module bundlers tests on webpack 4 --- .travis.yml | 2 +- test/run-module-bundlers-smoketests.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index c088aac..5192f69 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ script: - npm run test-coverage - echo "RE-RUN tests on the minified file" && npm run test-minified - echo "RE-RUN tests on the webpack and browserify bundled files" && - npm install -g browserify webpack && + npm install -g browserify webpack webpack-cli && ./test/run-module-bundlers-smoketests.sh - export DISPLAY=:99.0 - sh -e /etc/init.d/xvfb start diff --git a/test/run-module-bundlers-smoketests.sh b/test/run-module-bundlers-smoketests.sh index 16a2af0..afc72a1 100755 --- a/test/run-module-bundlers-smoketests.sh +++ b/test/run-module-bundlers-smoketests.sh @@ -1,7 +1,7 @@ echo "\nTest webextension-polyfill bundled with webpack" echo "===============================================" -webpack test/fixtures/bundle-entrypoint.js /tmp/webpack-bundle.js +webpack --mode production --entry ./test/fixtures/bundle-entrypoint.js --output /tmp/webpack-bundle.js TEST_BUNDLED_POLYFILL=/tmp/webpack-bundle.js npm run test echo "\nTest webextension-polyfill bundled with browserify"