From a208b44d66636b73fa0519c42f9b317f12070abd Mon Sep 17 00:00:00 2001 From: noyoutoday <10911701+noyoutoday@user.noreply.gitee.com> Date: Thu, 4 Aug 2022 08:03:19 +0000 Subject: [PATCH] =?UTF-8?q?update=20docs/worktile/auto/quick-start.md.=20t?= =?UTF-8?q?estEnvironmentOptions=20=E8=AE=BE=E7=BD=AE=20h5=20>=20url=20?= =?UTF-8?q?=E5=90=8E=EF=BC=8C=E8=BF=90=E8=A1=8C=E6=B5=8B=E8=AF=95npm=20run?= =?UTF-8?q?=20jest:h5=20=E5=90=8Ecli=E9=A1=B9=E7=9B=AE=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E8=87=AA=E5=8A=A8ws=E5=88=B0=E9=BB=98=E8=AE=A4=E7=AB=AF?= =?UTF-8?q?=E5=8F=A3=E9=80=A0=E6=88=90connection=20=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/worktile/auto/quick-start.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/worktile/auto/quick-start.md b/docs/worktile/auto/quick-start.md index d99ef57cf..648abadc4 100644 --- a/docs/worktile/auto/quick-start.md +++ b/docs/worktile/auto/quick-start.md @@ -44,7 +44,10 @@ module.exports = { testEnvironment: '@dcloudio/uni-automator/dist/environment.js', testEnvironmentOptions: { compile: true, - h5: { // 为了节省测试时间,可以指定一个 H5 的 url 地址,若不指定,每次运行测试,会先 npm run dev:h5 + h5: { + // 为了节省测试时间,可以指定一个 H5 的 url 地址,若不指定,每次运行测试,会先 npm run dev:h5 + // 若指定url属性,url对应的项目启动需追加 `--auto-port 9520` 参数以保证ws可以正常连接 + // `/h5/`二级目录需自己设置 url: "http://192.168.x.x:8080/h5/", options: { headless: false // 配置是否显示 puppeteer 测试窗口 -- Gitee