-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[core] Verify types in test code #457
Conversation
Netlify deploy preview |
a73bcf2
to
8907ed3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Let's move forward with this.
Just for tracking purposes: Building multiple projects with references could lead to weird race conditions as we saw in mui/material-ui#30200. Something we could avoid by building type declarations in a single tsc command at the monorepo level, again with project references to every project that needs its types emitted. Something to experiment with in follow-up
Our current setup omits test code while typechecking on the root level (
pnpm typescript
run in workspace root). This PR fixes it by defining tests as a separate TS project and referencing production code in their tsconfig, as discussed with @Janpot on the code infra meeting.