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
## PR Checklist
- [x] Addresses an existing open issue: fixes#1532
- [x] That issue was marked as [`status: accepting
prs`](https://github.com/JoshuaKGoldberg/TypeStat/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22)
- [x] Steps in
[CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/TypeStat/blob/main/.github/CONTRIBUTING.md)
were taken
## Overview
I have taken inspiration how to do this from `ts-fix`. They are doing it
with `ts.getParsedCommandLineOfConfigFile` so I think that is what would
be the best way here too.
I also reworked testSetup so it uses more same code as the whole tool.
`cwd` is passed down from `runCli` so we can supply it in the test
easier.
`printers.node` uses now the existing SourceFile so we do not need to
create dummy SourceFile for it. I didn't see behaviour change but I
think it should be better this way. Now it can use the context from
original SourceFile.
Most changes are in the test files.
0 commit comments