You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently in the process of converting a project from untyped Javascript to TypeScript. I would like to use tscov to track my progress.
My process is to slowly convert sections of the project from js files to ts and tsx files and fix errors as I go along. The project is big enough that I don't want to convert all files to ts at once and deal with type issues across it all at once.
Currently, tscov is great for checking that I have good coverage in the files I have converted (97%!), but it doesn't show me my overall progress towards converting my js files.
My idea is that there could be a flag which will change the behaviour to scan js files and report them as untyped. This will lower the overall percentage, but give a much more accurate picture of how far I have to go.
My question:
Is this currently possible with from settings in tsconfig.json?
If not, what would it take to support it? What would need to be added. If you can lay out roughly what would need to be added and where, I would happily submit a PR.
The text was updated successfully, but these errors were encountered:
Thanks! @matt-oakes. An easy way would be by changing your .js extension to .ts. So tscov will notice these files... js to ts would be no problem I think.
The issue with that method is that I don't actually want type checking on those files yet as I want to convert the app piece by piece over time, rather than in one go.
Thanks for the great tool!
I'm currently in the process of converting a project from untyped Javascript to TypeScript. I would like to use tscov to track my progress.
My process is to slowly convert sections of the project from
js
files tots
andtsx
files and fix errors as I go along. The project is big enough that I don't want to convert all files tots
at once and deal with type issues across it all at once.Currently, tscov is great for checking that I have good coverage in the files I have converted (97%!), but it doesn't show me my overall progress towards converting my
js
files.My idea is that there could be a flag which will change the behaviour to scan
js
files and report them as untyped. This will lower the overall percentage, but give a much more accurate picture of how far I have to go.My question:
tsconfig.json
?The text was updated successfully, but these errors were encountered: