MCPcopy Create free account
hub / github.com/garrytan/gstack / runMigration

Function runMigration

test/artifacts-init-migration.test.ts:19–31  ·  view source on GitHub ↗
(fakeHome: string)

Source from the content-addressed store, hash-verified

17}
18
19function 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
33describe('v1.38.1.0 migration', () => {
34 test('adds patterns to allowlist before USER ADDITIONS marker', () => {

Calls

no outgoing calls

Tested by

no test coverage detected