UNPKG

@assurka/cypress

Version:

Assurka Cypress Plugin

15 lines (13 loc) 318 B
import { rejects } from 'assert' import { getLastCommit } from 'git-last-commit' export async function getGitCommit(path: string) { return new Promise((res, _rej) => { getLastCommit( (err, commit) => { if (err) return res(null) return res(commit) }, { dst: path } ) }) }