mirror of
https://github.com/unraid/api.git
synced 2025-12-21 16:49:37 -06:00
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added the ability to create Docker folders and set folder children via new GraphQL mutations in the Docker organizer. * Enhanced organizer management with pure functions for folder creation and child assignment, ensuring immutability. * **Bug Fixes** * Improved validation to prevent empty or invalid folder entries in the organizer structure. * **Tests** * Added comprehensive tests for folder creation, child assignment, and organizer resolution, including edge cases and immutability checks. * Updated test guidelines to focus on observable behavior and error handling best practices. * **Documentation** * Expanded testing best practices in project documentation. * **Chores** * Updated ignore rules for local configuration files. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
15 lines
511 B
Plaintext
15 lines
511 B
Plaintext
---
|
|
description:
|
|
globs: api/**/*,api/*
|
|
alwaysApply: false
|
|
---
|
|
|
|
* pnpm ONLY
|
|
* always run scripts from api/package.json unless requested
|
|
* prefer adding new files to the nest repo located at api/src/unraid-api/ instead of the legacy code
|
|
* Test suite is VITEST, do not use jest
|
|
pnpm --filter ./api test
|
|
* Prefer to not mock simple dependencies
|
|
* For error testing, use `.rejects.toThrow()` without arguments - don't test exact error message strings unless the message format is specifically what you're testing
|
|
|