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.
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
Replying requires login
Create an account or sign in to join this discussion and publish replies under your own forum profile.