Skip to content

Commit 10a0c5e

Browse files
committed
fix: adjust tests as webpack 5 will no longer emit files for builds with errors
1 parent 2975a6a commit 10a0c5e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spec/basic.spec.js

+6
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ describe('HtmlWebpackPlugin', () => {
165165
it('should pass through loader errors', done => {
166166
testHtmlPlugin({
167167
mode: 'production',
168+
optimization: {
169+
emitOnErrors: true
170+
},
168171
entry: {
169172
app: path.join(__dirname, 'fixtures/index.js')
170173
},
@@ -2021,6 +2024,9 @@ describe('HtmlWebpackPlugin', () => {
20212024
path: OUTPUT_DIR,
20222025
filename: 'index_bundle.js'
20232026
},
2027+
optimization: {
2028+
emitOnErrors: true
2029+
},
20242030
plugins: [
20252031
new HtmlWebpackPlugin({
20262032
inject: true,

0 commit comments

Comments
 (0)