-
Notifications
You must be signed in to change notification settings - Fork 211
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
chore(dtslint): mention TSTyche in the readme #947
Conversation
I don't mind mentioning more tools, though at that point we should probably also mention |
Co-authored-by: Jake Bailey <[email protected]>
Co-authored-by: Jake Bailey <[email protected]>
Thanks for quick response. I was thinking abut making the list longer. There is also Vitest is also using Given all this context, it sounded like the best idea would be to open a PR adding only my tool. Others can do the same if they are interested. Or someone could create a more complete list later. |
Just to add, TSTyche is written from scratch. I was helping with It was obvious that integration with JavaScript testing tool is not the best solution. For instance, Jest or Vitest do not know how to install different versions of TypeScript package. Why they should know? Standalone type testing tool was obviously better solution. Differently from similar tools, TSTyche is wrapping around TypeScript's TSTyche compares types programatically, hence These all are niche problems, of course. Just trying to illustrate why I think that TSTyche is the most capable type testing tool around. The familiar testing APIs makes easy to start using it. If Sorry, I have no idea what changesets are. Hope that is not an issue. |
This is getting off topic, but I'm curious what you need to patch in; isTypeAssignableTo is now documented on the checker (but has been available for a long time), and I would expect to cover a lot of what you may need. |
The CI will require one, but since this is just a readme change, you may just be able to do |
Currently I have to expose What TSTyche is doing is not patching in the strict sense. I understand this more like extracting parts of TypeScript's code and wrapping a type test runner around them. One can see TSTyche as a per-file type checker with benefits (assertions, different TS versions, etc). In a way it could also reimplement TypeScript's code to do its job. Only that this is unnecessary duplication. For example, Yarn or Volar are patching TypeScript. They want to run the same |
Would it be possible to add TSTyche in the list of recommended type testing tools?
I have build TSTyche, because it was not possible to find a tool which could make it a breeze testing types in a large monorepo with around 1500 assertions. Without a dedicated CLI tool and support for helpers like
test()
ordescribe()
that was a pain.TSTyche implements the test helpers with
.only
and.skip
run mode modifiers,expect
style assertions and has a mighty test runner. For example, it can select test files by path, filter tests by name and pass them through TypeScript 4.8 andlatest
:Repo: https://github.com/tstyche/tstyche
Documentation: https://tstyche.org
I am biased, but it seems like TSTyche is the most capable type testing tool around. Currently it is in
rc
and a stable version will be released in few days.