I\'m writing a unit test for a class which uses browser WebAPI interface. I use ts-mockito to mock the interface (a WebGL2RenderingContext in my case).
When I r