@@ -2,10 +2,10 @@ import { promises as fs } from 'node:fs'
22import { tmpdir } from 'node:os'
33import path from 'node:path'
44
5- import { describe , expect , it , beforeEach , afterEach } from 'vitest'
5+ import trash from 'trash'
6+ import { afterEach , beforeEach , describe , expect , it } from 'vitest'
67
78import { spawn } from '@socketsecurity/registry/lib/spawn'
8- import trash from 'trash'
99
1010import {
1111 cleanupErrorBranches ,
@@ -48,11 +48,10 @@ describe('branch-cleanup integration tests', () => {
4848 } )
4949
5050 // Configure git user for commits.
51- await spawn (
52- 'git' ,
53- [ 'config' , 'user.email' , 'test@socket-cli.test' ] ,
54- { cwd : repoDir , stdio : 'ignore' } ,
55- )
51+ await spawn ( 'git' , [ 'config' , 'user.email' , 'test@socket-cli.test' ] , {
52+ cwd : repoDir ,
53+ stdio : 'ignore' ,
54+ } )
5655 await spawn ( 'git' , [ 'config' , 'user.name' , 'Socket CLI Test' ] , {
5756 cwd : repoDir ,
5857 stdio : 'ignore' ,
@@ -112,7 +111,11 @@ describe('branch-cleanup integration tests', () => {
112111 expect ( existsBefore ) . toBe ( true )
113112
114113 // Clean up stale branch.
115- const result = await cleanupStaleBranch ( branchName , 'GHSA-test-1' , repoDir )
114+ const result = await cleanupStaleBranch (
115+ branchName ,
116+ 'GHSA-test-1' ,
117+ repoDir ,
118+ )
116119
117120 expect ( result ) . toBe ( true )
118121
0 commit comments