Open History to see the last commit
1import { describe, expect, it } from 'vitest'
2
3import { createMemoryEnvironment } from '../../src/environment.js'
4import { setupGit } from '../../src/integrations/git.js'
5
6describe('git', () => {
7 it('should create a git repository', async () => {
8 const { environment, output } = createMemoryEnvironment()
9 environment.startRun()
10 await setupGit(environment, '/test')
11 environment.finishRun()
12
13 expect(output.commands).toEqual([
14 {
15 command: 'git',
16 args: ['init'],
17 },
18 ])
19 })
20})