Shuunen/repo-checker

View on GitHub
src/files/git.test.ts

Summary

Maintainability
A
2 hrs
Test Coverage
import { expect, it } from 'vitest'
import { ProjectData } from '../constants'
import { cleanInstanceForSnap, vueProjectFolder } from '../mock'
import { GitFile } from './git'

it('git : detect a missing git ignore', async () => {
  const instance = new GitFile(vueProjectFolder, new ProjectData({ isQuiet: true }))
  await instance.start()
  await instance.end()
  expect(cleanInstanceForSnap(instance)).toMatchSnapshot()
})