1 min readFeb 3, 2019
Thank you.
I ran into this with the following jest test:
expect(e).toBeInstanceOf(externalLib.CustomErrorType);
It was always an instanceOf Error until I put your hack in place on the CustomErrorType class.
Artist, Software Engineer, Tinkerer. Dim Media, mplsart, etc. http://blainegarrett.com
Thank you.
I ran into this with the following jest test:
expect(e).toBeInstanceOf(externalLib.CustomErrorType);
It was always an instanceOf Error until I put your hack in place on the CustomErrorType class.