Intern and client paths in version 1.1.0

穿精又带淫゛_ 提交于 2019-12-11 19:38:31

问题


I noticed with release 1.1.0 that modules are not considered siblings of intern anymore. For example, I used to be able to run something like http://localhost/intern/client.html?config=myproject/tests/config but it appears to try to attempt to fetch it from http://localhost/intern/myproject/tests/config.js instead as of previously http://localhost/myproject/tests/config.js.

Is this intentional? Also, I tried to prepend ../myproject/tests/config but it still apears to be fetching it relative to intern.


回答1:


It looks like you now have to install the intern using npm inside the project that contains the code you are testing. The intern is not a sibling of the tested project(s) anymore, but it is now located in subdirectory node_modules/intern of your tested project.



来源:https://stackoverflow.com/questions/17141394/intern-and-client-paths-in-version-1-1-0

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!