There is an npm package named SCURI which can be utilized to write unit test cases for .ts files automatically to cover more than 70% coverage .
Just need to install this package and once done, create autoSpy.ts file to define how to mock/create stubs for dependencies.