apple listing: a new version inherits the previous version's release type when apple.releaseType is unset; warn when the config differs
This commit is contained in:
parent
f5296cc9e9
commit
6ebb656018
5 changed files with 31 additions and 3 deletions
|
|
@ -101,7 +101,7 @@ describe('apple listing plan', () => {
|
|||
const p = project({ ...BASE, play: undefined }, { 'store/appstore.md': APPLE_MD });
|
||||
const calls = ascRoutes([v('v-0', '1.0.0', 'READY_FOR_DISTRIBUTION')]);
|
||||
const j = jsonOut((await capture(() => appleListing(p.ctx(['--version', '1.1.0', '--dry', '--json'])))).out) as any;
|
||||
expect(j.versionPlan).toMatchObject({ action: 'create', reason: 'create version 1.1.0 (no editable iOS version)' });
|
||||
expect(j.versionPlan).toMatchObject({ action: 'create', reason: expect.stringContaining('create version 1.1.0 (no editable iOS version), release type MANUAL') });
|
||||
expect(j.versionLocales).toBeNull();
|
||||
await capture(() => appleListing(p.ctx(['--version', '1.1.0'])));
|
||||
expect(methods(calls).filter(m => m.includes('appStoreVersion'))).toEqual(['POST /v1/appStoreVersions', 'POST /v1/appStoreVersionLocalizations']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue