mirror of https://github.com/langgenius/dify.git
chore: add symlink for skills directory and update autofix workflow exclusion pattern (#29953)
This commit is contained in:
parent
57b51603f5
commit
7b60ff3d2d
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
name: Dify Frontend Testing
|
name: frontend-testing
|
||||||
description: Generate Jest + React Testing Library tests for Dify frontend components, hooks, and utilities. Triggers on testing, spec files, coverage, Jest, RTL, unit tests, integration tests, or write/review test requests.
|
description: Generate Jest + React Testing Library tests for Dify frontend components, hooks, and utilities. Triggers on testing, spec files, coverage, Jest, RTL, unit tests, integration tests, or write/review test requests.
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
@ -178,7 +178,7 @@ Process in this order for multi-file testing:
|
||||||
- **500+ lines**: Consider splitting before testing
|
- **500+ lines**: Consider splitting before testing
|
||||||
- **Many dependencies**: Extract logic into hooks first
|
- **Many dependencies**: Extract logic into hooks first
|
||||||
|
|
||||||
> 📖 See `guides/workflow.md` for complete workflow details and todo list format.
|
> 📖 See `references/workflow.md` for complete workflow details and todo list format.
|
||||||
|
|
||||||
## Testing Strategy
|
## Testing Strategy
|
||||||
|
|
||||||
|
|
@ -289,17 +289,18 @@ For each test file generated, aim for:
|
||||||
- ✅ **>95%** branch coverage
|
- ✅ **>95%** branch coverage
|
||||||
- ✅ **>95%** line coverage
|
- ✅ **>95%** line coverage
|
||||||
|
|
||||||
> **Note**: For multi-file directories, process one file at a time with full coverage each. See `guides/workflow.md`.
|
> **Note**: For multi-file directories, process one file at a time with full coverage each. See `references/workflow.md`.
|
||||||
|
|
||||||
## Detailed Guides
|
## Detailed Guides
|
||||||
|
|
||||||
For more detailed information, refer to:
|
For more detailed information, refer to:
|
||||||
|
|
||||||
- `guides/workflow.md` - **Incremental testing workflow** (MUST READ for multi-file testing)
|
- `references/workflow.md` - **Incremental testing workflow** (MUST READ for multi-file testing)
|
||||||
- `guides/mocking.md` - Mock patterns and best practices
|
- `references/mocking.md` - Mock patterns and best practices
|
||||||
- `guides/async-testing.md` - Async operations and API calls
|
- `references/async-testing.md` - Async operations and API calls
|
||||||
- `guides/domain-components.md` - Workflow, Dataset, Configuration testing
|
- `references/domain-components.md` - Workflow, Dataset, Configuration testing
|
||||||
- `guides/common-patterns.md` - Frequently used testing patterns
|
- `references/common-patterns.md` - Frequently used testing patterns
|
||||||
|
- `references/checklist.md` - Test generation checklist and validation steps
|
||||||
|
|
||||||
## Authoritative References
|
## Authoritative References
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
../.claude/skills
|
||||||
|
|
@ -66,7 +66,7 @@ jobs:
|
||||||
# mdformat breaks YAML front matter in markdown files. Add --exclude for directories containing YAML front matter.
|
# mdformat breaks YAML front matter in markdown files. Add --exclude for directories containing YAML front matter.
|
||||||
- name: mdformat
|
- name: mdformat
|
||||||
run: |
|
run: |
|
||||||
uvx --python 3.13 mdformat . --exclude ".claude/skills/**"
|
uvx --python 3.13 mdformat . --exclude ".claude/skills/**/SKILL.md"
|
||||||
|
|
||||||
- name: Install pnpm
|
- name: Install pnpm
|
||||||
uses: pnpm/action-setup@v4
|
uses: pnpm/action-setup@v4
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue