jamesbrobb / jbr

mono repos for libraries and projects
0 stars 0 forks source link

Consider migrating type test to TSTyche #1

Open mrazauskas opened 1 month ago

mrazauskas commented 1 month ago

Hey there!

I just saw the issue you opened in tsd repo. Not sure if anyone will respond there.

The limitations of the library were causing me troubles too. So as a solution I wrote TSTyche, a type testing tool. Documentation: https://tstyche.org. Repo: https://github.com/tstyche/tstyche.

It just works. At any scale and complexity. See the Introduction page for details, https://tstyche.org/guide/introduction

There are numerous benefits and migration is relatively simple. Example PR: https://github.com/FloEdelmann/vue-ts-types/pull/507

I could put together a migration PR, if that sounds interesting.

jamesbrobb commented 1 month ago

Thanks, this looks amazing and exactly what i've been looking for.

I've been using tsd on and off for a few years now and one of my biggest issues was the inability to write functional tests. The ability to group related tests with describe and comment the purpose of the test through test rather than requiring descriptive comments above each test is great.

I'll take a look at writing some tests with it tomorrow and get back to you if i have any questions, thanks.

mrazauskas commented 1 month ago

Glad to hear. Another useful aspect is ability to directly compare two types or types of two expressions instead of creating intermediate values.

Feel free to ping me with any questions.