We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fe397e commit a69a26dCopy full SHA for a69a26d
test/webpack.js
@@ -19,7 +19,18 @@ describe('Webpack', function() {
19
}
20
});
21
compiler.outputFileSystem = fs;
22
- compiler.run(done);
+ compiler.run(function(err, stats) {
23
+ if (err) {
24
+ // fatal error
25
+ return done(err);
26
+ }
27
+ if (stats.compilation.errors && stats.compilation.errors.length) {
28
+ // non-fatal errors that nonetheless still probably bork things
29
+ return done(stats.compilation.errors);
30
31
+ // console.log(stats.compilation);
32
+ done();
33
+ });
34
35
36
0 commit comments