I am working on a tdd project with Node.js and Typescript. I have a class named HttpSample which is imported to another class named Sample as follows.
import {HttpSample} from "./httpService"
...
const http: HttpSample = new HttpSample();
http.get();
How can I mock the HttpSample class inside the Sample's test file?
Update
I am using Jasmine and mocha frameworks