# Goal Write unit tests for [function name] in [file path, e.g. src/utils/price.js]. ## Context [Paste the function here] ## Requirements - Use [test framework, e.g. Vitest]. - Cover the happy path, edge cases (empty, null, very large values) and error cases. - One describe block per behavior, clear test names. ## Constraints - Do not modify the function under test. - No snapshot tests.
Write better AI coding prompts and get working code on the first try — free at zoeyprompts.com.