babel-jspm-karma-jasmine-istanbul icon indicating copy to clipboard operation
babel-jspm-karma-jasmine-istanbul copied to clipboard

fixed proxies in karma config

Open kresli opened this issue 9 years ago • 4 comments

The last pull request will brake the proxies soon as you run jspm install. The reason is that jspm will replace

"github:*": "src/jspm_packages/github/*",
"npm:*": "src/jspm_packages/npm/*"

by

"github:*": "jspm_packages/github/*",
"npm:*": "jspm_packages/npm/*"

in config.js

kresli avatar Oct 30 '15 10:10 kresli

Hmm. Both this one and the previous one works fine locally for me, running node v4.2.1, but both fails on node v5. Which version are you using?

gunnarlium avatar Oct 30 '15 11:10 gunnarlium

karma is not ready for node 5 as far as I know. Im using 4.1.1. Even though the test passed, the browser will throw error because it is looking for jspm_dependencies with wrong path. baseUrl was set on / so your packages are in src/jspm_packages for the browser. I've cheat it by adding src in front of paths in config.js. The important thing is to keep correct path in baseUrl.

kresli avatar Oct 30 '15 15:10 kresli

Can you provide some code to reproduce?

Do I understand correctly that the problem only happens when you run this in a browser? In that case, I think the path will depend on what your document root is. I expect the document root to be in the src folder.

gunnarlium avatar Nov 05 '15 11:11 gunnarlium

Do I understand correctly that the problem only happens when you run this in a browser?

Yes

I expect the document root to be in the src folder.

Thats why I replaced baseURL: '\' by baseURL:'\src in config.js

Can you provide some code to reproduce?

Soon as I will have some spare time I can create test branch with index.html if you want

kresli avatar Nov 05 '15 13:11 kresli