storebound/tests/listing-plan-busy.test.ts

9 lines
584 B
TypeScript

// A version waiting for a manual release blocks the next one: the refusal names the command that releases it.
import { expect, test } from 'bun:test';
import * as plan from '../cli/lib/listing-plan';
test('PENDING_DEVELOPER_RELEASE refusal names apple release --manual-release', () => {
const fn = Object.values(plan).find(f => typeof f === 'function' && /one version in progress/.test(String(f))) as ((...a: unknown[]) => { action: string; reason: string }) | undefined;
expect(fn).toBeDefined();
expect(String(fn)).toContain('apple release --manual-release --version');
});