Commit Graph

2 Commits

Author SHA1 Message Date
Florent Cailhol fa72f1f124 Improve `PluginEnvironment` helper to support tapable's hooks
Test cases use `PluginEnvironment` to monitor plugins' actions.
Before this change, it only mocked `.plugin()` which is not enough
to test plugins written using `Tapable#hooks`.

This implementation uses a `Proxy` to trap hook calls and log them
as events.
2017-12-06 15:12:41 +01:00
Alistair Brown b25189a8b6 Add tests for RequireJsStuffPlugin (#3702) 2017-01-03 13:08:15 -06:00