Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
andyferris
· 4y ago · 0 comments
I use @ts-expect-error for testing the negative case, but if there was a practical way of testing the actual error reported that would be wonderful.
Comments
[–]
arpakuutio
4y ago
My solution to this was to run tsc from Jest tests and do snapshot tests for the error messages
https://github.com/noppa/get-optional/tree/master/tests/typi...