From d6840612d35f42aebf631901b5357471505bb967 Mon Sep 17 00:00:00 2001 From: anne-lxm <1076217653@qq.com> Date: Wed, 29 Jun 2022 15:44:59 +0800 Subject: [PATCH] update uniapp-cli-project.md --- docs/worktile/auto/uniapp-cli-project.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/worktile/auto/uniapp-cli-project.md b/docs/worktile/auto/uniapp-cli-project.md index a585005b7..120ff262a 100644 --- a/docs/worktile/auto/uniapp-cli-project.md +++ b/docs/worktile/auto/uniapp-cli-project.md @@ -25,6 +25,8 @@ jest-environment-node@27.5.1 npm install @dcloudio/uni-automator --save-dev ``` 3. package.json script节点新增命令 + +vue2项目新增如下: ``` "test:h5": "cross-env UNI_PLATFORM=h5 jest -i", "test:android": "cross-env UNI_PLATFORM=app-plus UNI_OS_NAME=android jest -i", @@ -33,6 +35,15 @@ npm install @dcloudio/uni-automator --save-dev "test:mp-baidu": "cross-env UNI_PLATFORM=mp-baidu jest -i" ``` +vue3项目新增如下: +``` +"test:h5": "cross-env UNI_PLATFORM=h5 jest -i", +"test:android": "cross-env UNI_PLATFORM=app UNI_OS_NAME=android jest -i", +"test:ios": "cross-env UNI_PLATFORM=app UNI_OS_NAME=ios jest -i", +"test:mp-weixin": "cross-env UNI_PLATFORM=mp-weixin jest -i", +"test:mp-baidu": "cross-env UNI_PLATFORM=mp-baidu jest -i" +``` + ### H5平台测试流程 1. 进入工程目录,安装依赖 -- GitLab