Closed pcarvajal closed 1 year ago
I want to mock the following destructured dependency
const { func } = require('../some/path');
I register the mock
mockery.registerMock('../some/path', { func: () => true });
but at the time of replacing the function, it is on hold
Any ideas?
I have .js in the dependency path
I want to mock the following destructured dependency
const { func } = require('../some/path');
I register the mock
mockery.registerMock('../some/path', { func: () => true });
but at the time of replacing the function, it is on hold
Any ideas?