Skip to content
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

[dtslint] Improve failure message when tests fail on one TS version and pass on another #644

Open
marekdedic opened this issue Mar 21, 2023 · 0 comments

Comments

@marekdedic
Copy link
Contributor

Hi,
I've spent the better part of a day chasing an issue where ExpectType would complain about a type mismatch and then would complain again the other way if I changed the expected type. (#632).

Turns out, the two issues were on different TS versions which output generic types differently (4.9 vs 5.0).

It would be nice if there was a bigger warning when tests pass on one TS version and fail on another (it prints the version in the error message, but apparently, that's not enough) - something like "The test PASS on 5.1 but FAIL on 4.9:"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant