Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
karma support for ES6 modules #2903
Tests do not run:
Steps to reproduce the behaviour
I hacked my karma installation and jasmine adapter to get karma to run ES6 modules with latest stable chrome. To do so, I modified the following:
Thanks for the quick reply!
I tried, NPM test is failing on a clean checkout, for reasons unclear to me:
npm version 5.5.1
Please advice on how to proceed. If this cannot be fixed within the short term, perhaps this could be taken care of by a custom karma middleware plugin for now? I am not sure though, I could not find any clear documentation on this subject yet.
referenced this issue
Dec 31, 2017
I'm aware it's only an temporary solution, but maybe this tip will help someone to investigate/fix problem.
I'm not able to contribute a PR due to failing Karma own test. The above work around works, but once it's fixed, the other error emerge, like
I have seen that the first part is integrated in karma 2.0.0: you have to specify files with (see https://karma-runner.github.io/2.0/config/files.html)
For the second part, I have opened a second bug #2955, where I am trying to make a PR...
This was referenced
May 15, 2018
Could anybody please implement this? If not, I will try to do it myself (taking the above experiences) and make a PR, just don't want to invest my time if someone else does it too. I would prefer somebody experienced with Karma do it, but if nobody will, I can at least try.
That is correct, after further experiments I managed to get it to work without modifying the karma code. Sorry for the confusion, I am still new to configuring karma (used it with Angular only so far) and seeing that issue open made me think I am doing it correctly - my mistake, I wasn't :).