TypeScript - Jest
Mock promisified function
The code
1 | import MyClass from 'my-module'; |
The test
1 | const mockCreate = jest.fn((_params, callback) => { |
This is my technical blog about programming, server setup & configuration, technical learning experience.
The code
1 | import MyClass from 'my-module'; |
The test
1 | const mockCreate = jest.fn((_params, callback) => { |