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 extract github repo info from package.json', async () => {
readPkgUp.mockImplementationOnce(() => Promise.resolve({
pkg: {
name: 'gitmoji-changelog',
version: '0.0.1',
description: 'Gitmoji Changelog CLI',
},
}))
const result = await loadProjectInfo()
expect(result).toEqual({
name: 'gitmoji-changelog',
version: '0.0.1',
description: 'Gitmoji Changelog CLI',
})
})
})