I am trying to test class "a" (which inherits from class "b") with jest. The typescript compiler prepends the file compiled javascript of "a" with
var __extends = this.__extends || function (d, b) { ... };
unfortunately this is null, when running the unit test, so I am getting
Cannot read property '__extends' of null
I am using [email protected] to run the tests and [email protected] to compile my typescript files.
Normally this would point to window, when the files are run in a browser.
Does someone know how to get around that issue?