Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should throw an error if changelog generation fails', async () => {
generateChangelog.mockRejectedValue(new Error())
await main(options)
expect(logger.error).toHaveBeenCalled()
})