3 ms·
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.
by andyferris 4y ago
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.
- arpakuutio 4y agoMy 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/typings https://github.com/noppa/get-optional/tree/master/tests/typi...