Skip to content

Commit

Permalink
fix: adjust tests as webpack 5 will no longer emit files for builds w…
Browse files Browse the repository at this point in the history
…ith errors
  • Loading branch information
jantimon committed Feb 3, 2021
1 parent 2975a6a commit 10a0c5e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/basic.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ describe('HtmlWebpackPlugin', () => {
it('should pass through loader errors', done => {
testHtmlPlugin({
mode: 'production',
optimization: {
emitOnErrors: true
},
entry: {
app: path.join(__dirname, 'fixtures/index.js')
},
Expand Down Expand Up @@ -2021,6 +2024,9 @@ describe('HtmlWebpackPlugin', () => {
path: OUTPUT_DIR,
filename: 'index_bundle.js'
},
optimization: {
emitOnErrors: true
},
plugins: [
new HtmlWebpackPlugin({
inject: true,
Expand Down

0 comments on commit 10a0c5e

Please sign in to comment.