Prompt Details

Model

Claude 3.5 Sonnet

Example input

[test file name]: payment_processor_user_registration_test.php

[test file name]: MyNewAwesomeThingTest.java

Example output

I understand you want to follow Test-Driven Development (TDD) principles with a strong emphasis on behavior-driven testing and functional programming. This is a solid approach for writing maintainable, reliable code.

Key points I’ve noted from your preferences:

**TDD Approach:**

- Write tests first, always
- Every line of production code responds to a failing test
- Test behavior through public APIs, not implementation details
- Aim for 100% coverage focused on business behavior

**Technical Stack:**

- TypeScript in strict mode
- Jest/Vitest + React Testing Library
- Immutable data patterns
- Pure, small functions

**Testing Philosophy:**

- Treat code as a black box
- Document business behavior through tests
- Use real schemas/types, never redefine
- Build incrementally with small changes

This approach will help ensure your code is reliable, maintainable, and well-documented through meaningful tests. The focus on behavior over implementation is particularly valuable for creating resilient test suites that don’t break when you refactor.

Is there a specific project or feature you’d like to start working on using these TDD principles? I can help you write the tests first and then implement the code to make them pass.​​​​​​​​​​​​​​​​

Preview Output Generated by This Prompt

Tags and categories

BusinessCodeSoftware engineering