Generate tests for a specified file, function, or class. Matches the project's existing test framework, style, and conventions.
Write tests for the target code that fit naturally into the existing test suite.
Accept any of:
src/utils/format.tsparseDatethe payment processor moduleLocate the target using Grep or Glob as needed, then read it fully.
Before writing anything, gather context:
**/*.test.*, **/*.spec.*, **/*_test.*, tests/**/*)expect, assert, should)src/__tests__/, co-located, tests/)package.json, pyproject.toml, etc.) to confirm the test runner and any relevant configCover these cases in order of priority:
Do not generate tests for private/internal helpers unless they are the explicit target.
Write the test file to the location that matches the project's convention (co-located, __tests__/, tests/, etc.).
After writing, print: