-
-
Notifications
You must be signed in to change notification settings - Fork 542
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
Run tsc
on all test files
#837
Comments
Does |
If move to So whatever support tsc is first step, then we can choose "move to I think |
@Emiyaaaaa The helpers from |
Simply use TSTyche: https://tstyche.org |
For some additional background and potentially relevant previous discussions with regards to using |
@trevorade Do you have a fork of |
@voxpelli So I work at Google. We have a repository of OSS libraries we depend on including type-fest. Without going into specifics (not because they're super proprietary but just complex), running At the moment, we don't actually use To be clear, I'm still in support of moving off of |
Also, we decided on using a bare bones type verification lib rather than |
To draw your attention, TSTyche is a type test runner and its latest version is I was maintaining forked The goal was to run more than 1000 type assertions in a large monorepo. It was fun to make I went own writing a type test runner from scratch. This is TSTyche. It has
TSTyche ships with I wanted a tool which is lightweight, easy to start working and which can work at any scale. In comparison Thanks for reading. (By the way, |
@mrazauskas Thx for sharing :) For Google, I think we'd still prefer a
I suppose what I'd like to see is a type assertion library that can be directly used with We're just one voice though so I'm supportive of whatever this repo goes with. If |
And here's why My point of view:
|
I really wish the TypeScript team would just implement this FR: microsoft/TypeScript#27024 Would make this so much easier. |
Hm.. Not sure I follow. Checking a file with
The main difference: In testing JavaScript it feels natural to be able to run just one file or a single
|
@mrazauskas I think neither me or @trevorade has looked into |
@voxpelli To be honest, I am puzzled with the requirements in that comment. If running
Sorry. I drifted into details again. Could I ask to clarify the requirements, please?
Just for fun, here is test run output with error messages (they will be improved, this is just v1): |
The comment on why My point of view is that we shouldn't be using
|
Thanks. If you think it is enough to use From my understanding, a type test runner does much more. For instance, A type test runner provides Edit: here is real world example from There are more benefits which I already mentioned. It is not like I am trying to convince someone. To be honest, my first note on TSTyche was so short, because I did not believe it could be ever adopted by |
Hi @voxpelli , sorry I'm a little confused, you mean there is no way to run What I mean is: update: |
Right now not even latest tsd passes so first step is to make sure our current tests are actually passing 😝 #839 |
I noticed tsd update And If we update tsd then fix that issue base so, we also need a type test library that doesn't depend on the ts version, It looks like the existing libraries are all based on tsc or similar to tsc |
TSTyche is fully independent from the installed version of (I do understand this is not relevant. Sorry about the noise. Feel free to hide my comments.) |
@Emiyaaaaa We're transforming all these tests already in our copy of type-fest. We're using a library similar to |
@trevorade PR would be very welcome 🙏 I guess we should fix #839 first, did you get a chance to look at the failures there? |
@voxpelli I haven't looked at the failures over there, no. I'm assuming you're seeing #831 and #833? Just let me know which library you decide on and I can help create the initial rewrite. I can't promise that what I produce will fully work. More that I can produce a starting point for others to iterate on. |
@trevorade Exactly, #833, I haven't looked into why it fails, but migrating to a new testing approach while current tests are failing will be hard :) |
|
We should run
tsc
on all the test files.Basically, remove this:
type-fest/tsconfig.json
Lines 13 to 15 in 14fb192
And then fix the reported issues.
Upvote & Fund
The text was updated successfully, but these errors were encountered: