Q37: How can developers ensure Copilot Chat follows organizational testing conventions when generating test suites?
Provide explicit prompt context examples or point Copilot to existing test spec files within the repository using @workspace. Copilot learns coding structure and framework choices from sample context.
Key Takeaways
- Include sample test snippets in prompt requests.
- Keep an existing test file open in neighboring IDE tabs.
Knowledge Check
How do you direct Copilot Chat to adhere strictly to your company's custom Jest testing wrapper?