chore(test): Fixed module bundlers tests on webpack 4

This commit is contained in:
Luca Greco 2018-04-09 14:18:37 +02:00
parent a7cbdcc23e
commit dd180a0907
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ script:
- npm run test-coverage - npm run test-coverage
- echo "RE-RUN tests on the minified file" && npm run test-minified - echo "RE-RUN tests on the minified file" && npm run test-minified
- echo "RE-RUN tests on the webpack and browserify bundled files" && - 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 ./test/run-module-bundlers-smoketests.sh
- export DISPLAY=:99.0 - export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start - sh -e /etc/init.d/xvfb start

View File

@ -1,7 +1,7 @@
echo "\nTest webextension-polyfill bundled with webpack" echo "\nTest webextension-polyfill bundled with webpack"
echo "===============================================" 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 TEST_BUNDLED_POLYFILL=/tmp/webpack-bundle.js npm run test
echo "\nTest webextension-polyfill bundled with browserify" echo "\nTest webextension-polyfill bundled with browserify"