(cwd: string, args: string[])
| 6 | import { isDestructiveBash, SnapshotService } from '../src/safety/snapshot.js'; |
| 7 | |
| 8 | function gitSetup(cwd: string, args: string[]): void { |
| 9 | const r = spawnSync('git', args, { cwd, encoding: 'utf-8' }); |
| 10 | if (r.status !== 0) throw new Error(`git ${args.join(' ')}: ${r.stderr || r.stdout}`); |
| 11 | } |
| 12 | |
| 13 | describe('isDestructiveBash', () => { |
| 14 | it('flags rm -rf', () => { |