fix: 修改E2E 测试位置的描述 (#4260)
This commit is contained in:
parent
162e1644e7
commit
e5e921b3ab
34
AGENTS.md
34
AGENTS.md
|
|
@ -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(单元)+ Playwright(E2E)
|
||||
|
||||
## E2E 测试触发
|
||||
|
|
|
|||
Loading…
Reference in New Issue