writing-tests
Installation
SKILL.md
Writing Tests
Core Principles
When writing tests:
- Use Jest with
describe/itblocks - Use Effect-TS for async operations (not async/await)
- Test both valid and invalid cases
- Add debugging to production code using
Effect.logDebugin the code being tested - Add debugging to test code using
console.login tests - Enable console logging while debugging - Use
enableConsoleLogging()andsetLogLevel('debug')inbeforeEach, then change tosetLogLevel('error')when tests are ready - Prefer real implementations over mocks - Use real services, managers, and components unless mocking is absolutely necessary