karma-jspm icon indicating copy to clipboard operation
karma-jspm copied to clipboard

Is it ignoring files[] array of karma config?

Open abhijeetkpawar opened this issue 9 years ago • 3 comments

When I use JSPM with Karma, none of the files from files: [] array is loaded. But if I disable JSPM they start getting loaded.

abhijeetkpawar avatar Jul 08 '15 10:07 abhijeetkpawar

I think this is expected and this is the whole point of using this plugin. You should get all your files loaded via jspm's loadFiles property.

kubawalinski avatar Jul 22 '15 18:07 kubawalinski

For reference, I have files: [], an empty array! If this always works and is how it should be then it should be made more clear in the documentation.

letmaik avatar Aug 26 '15 16:08 letmaik

You can still use the files array to add anything you want to load before Systemjs/jspm start loading tests. This is useful for anything you would want to be globally available, e.g. jQuery, angular, etc.

maxwellpeterson-wf avatar Aug 26 '15 16:08 maxwellpeterson-wf