Closed lmaze closed 7 years ago
Have you tried to add a proxy to your test folder? Try to put this
proxies: {
'/test/': '/base/test/',
}
in your karma.conf.js
If it pass, but you keep getting 404 error from some jspm_packages file, try to add a proxy entry to jspm_packages too, with /base before your path.
And if not work, try to add that changing your baseUrl to baseUrl = ""
, or baseUrl="."
Thank you very much for your answer. In fact it works well with proxies, sorry for not having better understood how Karma worked.
I have also found a seed example (https://github.com/UIUXEngineering/angular2-jspm-typescript-seed) which was very helpful and allowed me to set up a configuration that works.
My 404 problem seemed still combined with what looks like a bug on browserConfig property. I created another bug about it ;)
Hi there !
I try to run karma-jspm with the latest 0.17 version of JSPM (0.17 beta 29) but it does not seem to work. Everything seems to work well but Karma did not find my files. When I remove the karma-jspm plugin everything works...
I have the following error :
I have a very simple configuration just for testing. Here is my configuration file for Karma :
I have a standard JSPM configuration. The only difference is the installation directory of my packages ("lib/jspm" here). My specs files is in the "test/tu/specs" directory.
Does the plugin works well with the 0.17 version of JSPM?