karma-runner / grunt-karma

Grunt plugin for Karma.
MIT License
468 stars 116 forks source link

When running in background, functions in config are lost #270

Open terenc3 opened 5 years ago

terenc3 commented 5 years ago

Since the background mode requires a JSON.stringify any option which is a function is lost.

I noticed it, when using karma-ng-html2js-preprocessor and the cacheIdFromPath custom function. I've managed to get around by using a stripPrefix regex but want to report here for others.

Could be related to #132