Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions packages/qa/scenarios/test/export/refresh.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,18 @@ describe('galleryRefresh — the quiet skip', () => {
expect(remoteRefs(remote)).toBe(refs);
});

it('does not skip when one listed app is on an older version, or when the index lists no app', async () => {
for (const apps of [[app('crm_account_with_contacts', PINNED), app('order_to_cash', '18.2.0')], [], undefined]) {
const { dir } = gallery(apps);
const h = harness(PINNED);
const out = await galleryRefresh(options(dir), h.deps);
expect(out.kind).toBe('committed');
expect(h.plans).toHaveLength(1);
}
// One case per gallery shape: each runs a full refresh (git init, the crm run, a commit), so a
// loop over all three in one case outgrew the default per-test budget on a loaded CI shard.
it.each<[string, () => GalleryApp[] | undefined]>([
['one listed app is on an older version', () => [app('crm_account_with_contacts', PINNED), app('order_to_cash', '18.2.0')]],
['the index lists no app', () => []],
['the gallery has no index', () => undefined],
])('does not skip when %s', async (_shape, apps) => {
const { dir } = gallery(apps());
const h = harness(PINNED);
const out = await galleryRefresh(options(dir), h.deps);
expect(out.kind).toBe('committed');
expect(h.plans).toHaveLength(1);
});

it('skips when a remote-tracking export/<version> branch exists: that refresh awaits review', async () => {
Expand Down
Loading