Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beforeEach(() => {
_client = {
getPageInfo: jest.fn(),
uploadAttachment: jest.fn(),
};
MessengerClient.connect = jest.fn(() => _client);
getConfig.mockReturnValue(MOCK_FILE_WITH_PLATFORM.messenger);
readdir.mockResolvedValue([
{
name: 'The X-Files',
},
]);
inquirer.prompt = jest.fn();
inquirer.prompt.mockResolvedValue({
confirm: true,
});
process.exit = jest.fn();
});