ship step: apple build plan keeps its version and build in --json; test fixtures pass the scrub (documentation IPs, neutral home paths, 10-char key ids)

This commit is contained in:
CRTkafa 2026-10-23 13:55:44 +08:00
parent 6abc1f65dd
commit 960e084bea
3 changed files with 11 additions and 11 deletions

View file

@ -22,10 +22,10 @@ describe('apps relink', () => {
expect(found.sort()).toEqual([game, front, renamed].sort());
expect(configAppName(front)).toBe('Studio');
const r = { version: 1 as const, projects: [
{ id: 'a', path: '/Users/old/Desktop/game-one', name: 'Game One', added: '' },
{ id: 'b', path: '/Users/old/Work/Studio/frontend', name: 'frontend', added: '' },
{ id: 'c', path: '/Users/old/Work/OldName/app', name: 'Old App', added: '' },
{ id: 'd', path: '/Users/old/gone', name: 'Gone', added: '' },
{ id: 'a', path: '/Users/name/Desktop/game-one', name: 'Game One', added: '' },
{ id: 'b', path: '/Users/name/Work/Studio/frontend', name: 'frontend', added: '' },
{ id: 'c', path: '/Users/name/Work/OldName/app', name: 'Old App', added: '' },
{ id: 'd', path: '/Users/name/gone', name: 'Gone', added: '' },
] };
const plan = relinkPlan(r, found, () => false, configAppName);
expect(plan.map(p => [p.id, p.to])).toEqual([['a', game], ['b', front], ['c', renamed]]);