chore(test): Fixed module bundlers tests on webpack 4
This commit is contained in:
parent
a7cbdcc23e
commit
dd180a0907
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue