Thursday, 23 July 2020

How to increase code coverage for mocha testing on basic Typescript example

I want to get a better understanding of how to test these kinds of functions in Typescript using mocha. In the StackOverflow post below I've outlined a basic small Typescript file, which I want to test and increase code coverage. Right now I'm not sure why the breakdown of the testing is the way that it is (50% Stmts | 100% Branch | 0% Funcs | 50% Lines) and how I would be able to get everything to 100%.https://stackoverflow.com/questions/63065938/how-to-increase-code-coverage-for-mocha-testing-on-basic-typescript-exampleAny advice would greatly be appreciated!

Submitted July 24, 2020 at 03:47AM by e_n_v

No comments:

Post a Comment