computmaxer / karma-jspm

Other
74 stars 52 forks source link

Add custom adapter option #164

Open jerryorta-dev opened 8 years ago

jerryorta-dev commented 8 years ago

I want to keep all benefits that karma-jspm offers, but would like the opportunity to develop a little lower level by writing my own adapters as necessary.

For angular2 with typescript tests I'm finding it necessary to write a custom adapter.

I have a PR ready, and have a sample implementation at https://github.com/UIUXEngineering/angular2-seed-jspm/blob/master/src/client/jspm.karma.ng2.adapter.js.

This is a non-breaking change in that if no custom adapter is provided, the default adapter is used.

This may also help with #162

RIAstar commented 8 years ago

Unfortunately, the PR won't help with #162 because that bug causes none of the files to be loaded at all. That would include the custom adapter.