Add finish module test case

This commit is contained in:
Matt Jones 2019-04-05 11:22:45 +11:00
parent ea172ec5fd
commit fdc3bc6b28
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,3 @@
it("should compile", function(done) {
done();
});

View File

@ -0,0 +1,14 @@
var testPlugin = function() {
this.hooks.compilation.tap("TestPlugin", compilation => {
compilation.hooks.finishModules.tapAsync("TestPlugin", function(
_modules,
callback
) {
callback();
});
});
};
module.exports = {
plugins: [testPlugin]
};