Troubleshooting: Copilot not suggesting tests in monorepo
In our Yarn workspace, Copilot rarely suggests test files across packages; I've toggled settings but need practical fixes to surface test suggestions.
Best tools for this use case
Based on the workflow in this discussion, these tools are useful starting points to review.
GitHub Copilot
Leading coding assistant for day-to-day developer acceleration.
Claude
Excellent for careful reasoning, long-form thinking and structured analysis.
Cursor
AI-native coding environment built for deeper assisted development across real codebases.
Answers
Approved replies, operator insight, and tactical follow-up from the community.
Try these fixes:
- Add a root tsconfig/jsconfig that includes all packages so the language server indexes tests.
- Open the monorepo root in VS Code (not a single package) so Copilot sees all files.
- Ensure tests use standard names (.test/.spec) and aren’t excluded by files.exclude or .gitignore.
- Update the Copilot extension, sign out/in, and enable inline suggestions.
More on Copilot vs alternatives: Compare GitHub Copilot and Cursor