Currently, I am running TypeScript unit tests using Mocha Chai after configuring the compiler options to ts-node.
Within one of my unit tests, I am seeking a way to retrieve all methods from a utility class that I have designed and execute the same set of tests on each method. To provide a clearer picture, I aim to accomplish the following:
UtilityClass.getMethods().forEach(method=>{method(sameInputData)})
Is there a graceful approach to implementing getMethods? Alternatively, are there other strategies available to address this requirement?