如何指定根目录Intern为http:// localhost:9000服务?

问题描述 投票:0回答:1

我有一个名为delite的项目,其所有依赖项与delite本身处于同一级别,而不是delite/node_modules

以前,运行Intern 3,我指定baseUrl: ".."http://localhost:9000服务于我的项目上方的一个目录,因此它可以加载delitehttp://localhost:9000/delite)和它的姐妹项目(例如:http://localhost:9000/dcl)。

有没有办法在Intern 4做同样的事情?目前,http://localhost:9000仅提供delite目录的内容,因此无法加载依赖项。

intern
1个回答
1
投票

您可以使用basePath配置选项。路径是相对于测试配置的位置(intern.json

© www.soinside.com 2019 - 2024. All rights reserved.