0

我注意到在 1.1.0 版本中模块不再被视为兄弟姐妹intern。例如,我曾经能够运行类似的东西,http://localhost/intern/client.html?config=myproject/tests/config但它似乎试图尝试从中获取它,http://localhost/intern/myproject/tests/config.js而不是之前的http://localhost/myproject/tests/config.js.

这是故意的吗?另外,我尝试预先../myproject/tests/config添加,但它仍然会相对于intern.

4

1 回答 1

1

看起来您现在必须在包含您正在测试的代码的项目中使用 npm 安装实习生。实习生不再是测试项目的兄弟姐妹,但它现在位于测试项目的子目录 node_modules/intern 中。

于 2013-06-17T11:41:40.860 回答