-
Notifications
You must be signed in to change notification settings - Fork 476
Typeckecking tests in composite projects #43
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
Comments
FYI, the Angular CLI team rolled back the solution style tsconfig solution a while back due to various issues. See https://docs.google.com/document/d/1eB6cGCG_2ircfS5GzpDC9dBgikeYYcMxghVH5sDESHw/edit for the nerdy details |
I've checked the Angular CLI document before implementing this feature. Most concerns seem to have been addressed and fixed in TypeScript as of now. |
vue-tsc --noEmit -p tsconfig.vitest.json --composite false So I think we can work around this issue by adding that to the |
Could do the trick indeed. It looks like I also need to duplicate:
in I can open a PR to fix all this. |
|
Yeah. Didn't realize that. Thanks! |
I opened 2 PRs. Even if it typechecks, it still looks like that VSCode (with Volar) does not understand an import with |
It works in my setup (both with the TypeScript Vue Plugin (Volar) and take-over mode). |
Right, it looks like I just needed to restart VSCode 🤦 |
Fixed in 3.1.5 |
Currently (v3.1.4), the type-checking task uses the default
tsconfig.json
file, which excludes unit tests.It would be nice to also typecheck tests: as a member of the VTU team, I can attest we spend a lot of time on the TypeScript support, so it would be sad to not check them by default 😄
Sadly, when running
yarn typecheck -p tsconfig.vitest.json
, the task fails with:This leads to this issue in the Volar repo: vuejs/language-tools#787
Note that the last comment from @johnsoncodehk is to recommend using a single tsconfig.
So do you think the composite path is the best one? Maybe we should stick to a single tsconfig that checks tests and sources at the same time?
The text was updated successfully, but these errors were encountered: