diff --git a/docs/worktile/auto/uniapp-cli-project.md b/docs/worktile/auto/uniapp-cli-project.md index a585005b7d1ae76c0c54805f5207f9d67f282a7c..120ff262a73b2fc96400dd638ea1f8e603f2c4b7 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. 进入工程目录,安装依赖