fix(phoenix-ng): scope Jest and Cypress TS types to restore VS Code IntelliSense#736
Conversation
|
Amazing! Thank you so much @XPE-7 |
|
Glad I could help. Let me know if there are any follow-ups or areas where I can contribute further. |
|
Well, actually the smoke test seems to have failed: https://github.com/HSF/phoenix/actions/runs/19465423744/job/55700828967 If you could have a look at that that would be great. And I'm also struggling to find time to look into the problem with #735, so any help with that would be much appreciated. |
|
Thanks for the update, Edward. I’ll take a look at the smoke-test failure and try to understand what went wrong there. |
|
@EdwardMoyse i have solved the smoke test issue you can verify and merge it here #737 |
|
I checked The scoping change improved isolation overall, but this file isn’t actually associated with the Jest test config yet, so it’s effectively falling back to the main library project. If we want to fully clean this up, the next step would likely be to either move these tests under a Jest-scoped config or introduce a dedicated test tsconfig for |

Restore reliable Jest IntelliSense in VS Code by scoping TypeScript types for Jest and Cypress so their globals no longer collide.
Closes #722
Background
In VS Code, autocomplete and types for Jest matchers (e.g.,
toBeTruthy,toEqual) were missing in unit tests. The cause was a type collision: both Jest and Cypress define a globalexpect, and without scoping, Cypress/Chai typings can mask Jest matchers in editor tooling. Test execution was unaffected; this was a developer-experience issue.What’s changed
packages/phoenix-ng/projects/phoenix-app/cypress/tsconfig.jsonpackages/phoenix-ng/tsconfig.spec.json.test.tsto the include patternsprojects/phoenix-app/cypressfrom the Jest TS contextWhy this approach
Verification
.spec.ts/.test.tsunder phoenix-ng/src): Jest matchers autocomplete and type-check correctlyprojects/phoenix-app/cypress): Cypress/Chai chainables are availableImpact