mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 03:01:54 +00:00
merge main into rh-test
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
# Unit Testing Guidelines
|
||||
|
||||
## Running Tests
|
||||
- Single file: `pnpm test:unit -- <filename>`
|
||||
- All tests: `pnpm test:unit`
|
||||
- Wrong Examples:
|
||||
- Still runs all tests: `pnpm test:unit <filename>`
|
||||
|
||||
## Testing Approach
|
||||
|
||||
- Write tests for new features
|
||||
@@ -11,3 +17,7 @@
|
||||
- Check @tests-ui/README.md for guidelines
|
||||
- Use existing test utilities
|
||||
- Mock external dependencies
|
||||
|
||||
## Mocking
|
||||
- Read: https://vitest.dev/api/mock.html
|
||||
- Critical: Always prefer vitest mock functions over writing verbose manual mocks
|
||||
|
||||
Reference in New Issue
Block a user