text: import { rmSync } from 'fs'
  import { join } from 'path'
  
  import t from 'tap'
  import execa from 'execa'
  
  import { generateExampleRepo } from './utils/generate-example-repo'
  import { dirname } from '../src/dirname'
  import { versionem } from '../src/index'
  import { commit } from './utils/commit'
  
  const __dirname = dirname(import.meta.url)
  
  t.beforeEach(async t => (
      t.context.exampleRepoPath = await generateExampleRepo()
  ))
  
  t.afterEach(t => rmSync(t.context.exampleRepoPath, { recursive: true }))
  
  t.test('--minor works', async t => {
    const { exampleRepoPath } = t.context
    await commit('fix: hello world', { cwd: exampleRepoPath })
    await versionem({ cwd: exampleRepoPath, minor: true, noPush: true, silent: true })
  
    let params = ['describe', '--tags', '--abbrev=0']
    const { stdout: latestGitTag } = await execa('git', params, { cwd: exampleRepoPath })
  
    t.is(latestGitTag, 'v0.1.0')
  })
  