prompts/README.md
This prompt template helps you quickly generate a failing test for a given source file to follow the Test-Driven Development (TDD) flow.
You can run this from the command line interactively:
pi --prompt-template prompts/tdd-test.md "/tdd-test path/to/source_file.ts path/to/expected_test_file.spec.ts"
Or you can run it non-interactively using the -p/--print flag:
pi --prompt-template prompts/tdd-test.md "/tdd-test path/to/source_file.ts path/to/expected_test_file.spec.ts" --print
$1: The source file path you want to generate a test for.$2: The location where the generated test file should be placed.This allows you to verify that the test environment is correctly set up before you start writing the implementation code.