1.1 KiB
1.1 KiB
Claude Code Instructions
Task Master AI Instructions
Import Task Master's development workflow commands and guidelines, treat as if import is in the main CLAUDE.md file. @./.taskmaster/CLAUDE.md
Test Guidelines
Synchronous Tests
- NEVER use async/await in test functions unless testing actual asynchronous operations
- Use synchronous top-level imports instead of dynamic
await import() - Test bodies should be synchronous whenever possible
- Example:
// ✅ CORRECT - Synchronous imports import { MyClass } from '../src/my-class.js'; it('should verify behavior', () => { expect(new MyClass().property).toBe(value); }); // ❌ INCORRECT - Async imports it('should verify behavior', async () => { const { MyClass } = await import('../src/my-class.js'); expect(new MyClass().property).toBe(value); });
Changeset Guidelines
- When creating changesets, remember that it's user-facing, meaning we don't have to get into the specifics of the code, but rather mention what the end-user is getting or fixing from this changeset.