diff --git a/AGENTS.md b/AGENTS.md index 9fd8a7c38..d924b16ca 100644 --- a/AGENTS.md +++ b/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//` +- E2E 测试位置:`examples/sites/demos/{pc,mobile-first}/app//` - 测试框架:Vitest(单元)+ Playwright(E2E) ## E2E 测试触发