diff --git a/tests/onboard.test.ts b/tests/onboard.test.ts index 3ca6e16..70c2d1e 100644 --- a/tests/onboard.test.ts +++ b/tests/onboard.test.ts @@ -203,7 +203,7 @@ describe('storebound onboard (recorded live shapes)', () => { ascEnv(); playEnv(); const p = liveProject(); liveStores({ draft: true }); - const r = await capture(() => onboard(p.ctx(['--write'], ['write']))); + const r = await capture(() => onboard(p.ctx(['--write', '--no-art'], ['write']))); expect(r.out + r.err).not.toContain('demo-secret-sentinel'); expect(r.out + r.err).toContain('sign-in for review: required (App Store review detail: demo account required (a demo account is set there))'); const creds = JSON.parse(readFileSync(join(p.root, '.storebound', 'credentials.json'), 'utf8')); diff --git a/tests/store-apps.test.ts b/tests/store-apps.test.ts index b87eb5d..d7d1c26 100644 --- a/tests/store-apps.test.ts +++ b/tests/store-apps.test.ts @@ -238,7 +238,7 @@ describe('serve: store-only apps (virtual)', () => { const r = await s.call('reviews.list', { virtual: V, args: { days: 30 }, credentials: APPLE }); expect(r.error).toBeUndefined(); expect(existsSync(join(s.calls[0]!.o.cwd, 'storebound.config.json'))).toBe(true); - expect([...VIRTUAL_READS].sort()).toEqual(['apple_ppo_status', 'apple_status', 'apple_testflight_status', 'health', 'health_issue', 'listing_live', 'play_status', 'reviews_list']); + expect([...VIRTUAL_READS].sort()).toEqual(['apple_ppo_status', 'apple_status', 'apple_testflight_status', 'art_live', 'art_thumb', 'health', 'health_issue', 'listing_live', 'play_status', 'reviews_list']); for (const m of ['play.listing', 'catalog.diff', 'project.listings', 'check', 'reviews.approve']) expect((await s.call(m, { virtual: V, args: m === 'reviews.approve' ? { file: 'apple-1.md' } : {} })).error).toMatchObject({ code: ERR.invalidParams }); expect((await s.call('health', { virtual: V, project: '/tmp' })).error).toMatchObject({ code: ERR.invalidParams }); diff --git a/tests/wave1.test.ts b/tests/wave1.test.ts index 3bd5367..2161e06 100644 --- a/tests/wave1.test.ts +++ b/tests/wave1.test.ts @@ -85,7 +85,7 @@ describe('mcp tools', () => { } } // the local-write exception covers only the pull tools, and only with dry_run false - expect(Object.keys(LOCAL_WRITE_TOOLS).sort()).toEqual(['apple_listing_pull', 'catalog_pull', 'onboard', 'play_listing_pull']); + expect(Object.keys(LOCAL_WRITE_TOOLS).sort()).toEqual(['apple_listing_pull', 'art_pull', 'catalog_pull', 'onboard', 'play_listing_pull']); for (const n of Object.keys(LOCAL_WRITE_TOOLS)) expect(toArgv(TOOLS.find(t => t.name === n)!, {}).argv).not.toContain('--write'); const phased = TOOLS.find(t => t.name === 'apple_phased_release')!; expect(phased.props!.action!.enum).toEqual(['on', 'pause']);