News for hackers. Stuff that matters.
Re:Extreme explorations of TypeScript's type system by andyferris on Monday June 27, 2022 @07:46PM (#31902408)
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.
Re:Extreme explorations of TypeScript's type system by arpakuutio on Monday June 27, 2022 @09:38PM (#31903147)
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...