This component is part of service virtualization system and it's core responsibility it to create a ranking object which is used later in the virtualization process to determine the most accurate response
setup Jest to run test cases and generate coverage reports
Increase code coverage by writing unit tests for all lines of code
we may need to use Mocking feature from Jest to mimic RabbitMq calls and DB responses
3.1. refer to the following url for mocking - https://jestjs.io/docs/en/mock-function-api
as of today the ranker only has unit tests for the core logic and about 70% code is not tested.
let's see how we can everything in ranker, and probably replace Jasmine with Jest for testing framework