Skip to content

Commit 3bc28aa

Browse files
committed
fix: fix webpack watch mode unit test
1 parent 72d59e9 commit 3bc28aa

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

webpack/webpack.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,13 @@ module.exports = function(env/* @if jasmine || tape || mocha*/, { runTest }/* @e
128128
// @endif
129129
plugins: [
130130
new HtmlWebpackPlugin({ template: 'index.ejs' })/* @if jasmine || tape || mocha*/,
131-
test && runTest && new WebpackShellPluginNext({ onBuildEnd: [ 'npm run test:headless' ]})/* @endif */
131+
test && runTest && new WebpackShellPluginNext({
132+
dev: false,
133+
swallowError: true,
134+
onBuildEnd: {
135+
scripts: [ 'npm run test:headless' ]
136+
}
137+
})/* @endif */
132138
]/* @if jasmine || tape || mocha*/.filter(p => p)/* @endif */
133139
}
134140
}

0 commit comments

Comments
 (0)