(fakeHome: string)
| 17 | } |
| 18 | |
| 19 | function runMigration(fakeHome: string): { code: number; stdout: string; stderr: string } { |
| 20 | const proc = Bun.spawnSync({ |
| 21 | cmd: ['bash', MIGRATION], |
| 22 | env: { ...process.env, HOME: fakeHome }, |
| 23 | stdout: 'pipe', |
| 24 | stderr: 'pipe', |
| 25 | }); |
| 26 | return { |
| 27 | code: proc.exitCode ?? -1, |
| 28 | stdout: new TextDecoder().decode(proc.stdout), |
| 29 | stderr: new TextDecoder().decode(proc.stderr), |
| 30 | }; |
| 31 | } |
| 32 | |
| 33 | describe('v1.38.1.0 migration', () => { |
| 34 | test('adds patterns to allowlist before USER ADDITIONS marker', () => { |
no outgoing calls
no test coverage detected