codymikol / karma-webpack

Karma webpack Middleware
MIT License
829 stars 222 forks source link

refactor(*): break up into individual modules #474

Closed codymikol closed 3 years ago

codymikol commented 3 years ago

Fixes N/A

This PR contains a:

Motivation / Use-Case

this should make it much easier to comprehend and write tests for karma-webpack. there is one change in how the KarmaWebpackController is managed, we now instantiate this in the preprocessor phase and propagate the value within the karma config object as a private variable. This allows for breaking the framework and preprocessor into separates modules and has the added benefit of being able to run multiple times in a given session without sharing mutable state. This allows integrations tests to be run in parallel as well as multiple times which was previously not possible.

Breaking Changes

N/A

Additional Info

N/A