fix: 修改E2E 测试位置的描述 (#4260)

This commit is contained in:
申君健 2026-07-24 15:09:42 +08:00 committed by GitHub
parent 162e1644e7
commit e5e921b3ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 17 additions and 17 deletions

View File

@ -38,10 +38,10 @@ tiny-vue/
## 环境要求
| 工具 | 版本要求 |
|------|------------------------------------------|
| Node | `>= 18` |
| pnpm | `>= 9.5`(必须,禁止使用 npm 或 yarn |
| 工具 | 版本要求 |
| ---- | -------------------------------------- |
| Node | `>= 18` |
| pnpm | `>= 9.5`(必须,禁止使用 npm 或 yarn |
## 核心命令
@ -131,18 +131,18 @@ TinyVue 使用 **Renderless 无渲染架构**。修改或新增组件时,必
**允许的 type**
| type | 用途 |
|-------------|--------------------------|
| `feat` | 新功能 |
| `fix` | 缺陷修复 |
| `docs` | 文档变更 |
| `style` | 代码格式(不影响逻辑) |
| `refactor` | 重构(无新功能/修复) |
| `perf` | 性能优化 |
| `test` | 测试用例 |
| `chore` | 构建/工具链变更 |
| `ci` | CI/CD 配置 |
| `revert` | 回滚提交 |
| type | 用途 |
| ---------- | ---------------------- |
| `feat` | 新功能 |
| `fix` | 缺陷修复 |
| `docs` | 文档变更 |
| `style` | 代码格式(不影响逻辑) |
| `refactor` | 重构(无新功能/修复) |
| `perf` | 性能优化 |
| `test` | 测试用例 |
| `chore` | 构建/工具链变更 |
| `ci` | CI/CD 配置 |
| `revert` | 回滚提交 |
**scope 规范:**
@ -175,7 +175,7 @@ test(button): 新增 E2E 测试用例
- 修复 Bug 时:必须同步补充能复现该 Bug 的测试用例
- 新增 Feature 时:需补充对应的单元测试,优先考虑同步 E2E 测试
- 单元测试位置:`examples/vue3/src/**/__tests__/`
- E2E 测试位置:`examples/sites/demos/<component-name>/`
- E2E 测试位置:`examples/sites/demos/{pc,mobile-first}/app/<component-name>/`
- 测试框架Vitest单元+ PlaywrightE2E
## E2E 测试触发