Open deckar01 opened 7 years ago
I tracked down the issue to the vojtajina/node-di dependency. Unfortunately that project has was depreciated in favor of a project that was unreleased and got abandoned in favor of coupling it to the angular core...
Would you be open to a fork of di
?
@deckar01 another alternative is migration to the DI implementation in @angular/core
or its extraction at injection-js.
Expected behaviour
Karma should allow ES6 arrow functions for a middleware factory. It should behave the same as if a traditional function was passed.
Actual behaviour
Karma throws "Cannot read property '1' of null", because it is trying to reflect the functions parameters as a string and is assuming "function" will be present.
Environment Details
Karma version: 1.7.0
Relevant part of your
karma.config.js
file:Steps to reproduce the behaviour