Closed yordis closed 9 years ago
One thing I notice is about karma add /base/
prefix in every URL
This is the way I fixed it right now but I don't understand why I have to proxy everything now. I think this is just the work around :-1:
proxies: {
'/src/': '/base/src/',
'/test/': '/base/test/',
'/jspm_packages/': '/base/jspm_packages/'
},
Here is another way. Keep the baseURL = "base".
You can check out the sample I have: https://github.com/unional/karma-jspm-sample
@unional thank you very much but I don't think that should be the solution because config.js is the global configuration for the project, I shouldn't "hack" the system config just for get around with the testing environment.
At the same and very important look this that's basically trying to do what you are saying, so that mean, that's not working properly I guess @matoilic can actually say if I am wrong about that
Yeah, I also realize what I have is not correct for the reason that you mentioned. Still looking for answer.
I used karma-systemjs
and able to make it work with a PR.
@unional I think that could a good idea and I never get the idea about this project because the way I see jspm is just management tool on top of System, so, look the code, outside of try to change some system stuff in the adapter I really don't see the point what could be the difference between this and karma-systemjs
@yordis I would use karma-systemjs except you must explicity list all the packages you installed via JSPM, which isn't ideal for me because I update deps often.
ups missclick
@yordis I got the same issue. Thanks very much for the fix via proxies. I am looking for a better solution, though. Have you found any better way of fixing this? Do you think it is worth investigating the adapter.js file you mentioned earlier?
@kubawalinski I didn't find any solution for now, like I said in some comment is weird because they actually change the baseUrl of System in that plugin but for some reason doesn't work so I just stay with this work around :disappointed:
I didn't try to fix it, sorry about that
Please follow #91 for updates on this issue.
This is my karma configuration. Basically I am trying to just load the testing files and give me 404 for the files.
At the same I want to understand why is trying to pull
jspm_packages/system-polyfills.src.js
.