Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function mockNoCommits() {
gitRawCommits.mockReset()
gitRawCommits.mockImplementationOnce(() => {
const stream = require('stream')
const readable = new stream.Readable()
readable.push(null)
readable.emit('close')
return readable
})
}