Skip to content

Commit 5fca5d6

Browse files
committed
test(ui): expect Build & E2E UI's if: to carry the covered conjunct
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jQztfi9hnsaBeBVcCU
1 parent 42cfe14 commit 5fca5d6

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

‎ui/scripts/__tests__/turbo-cache-save-bound.test.ts‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,14 @@ describe('root ci.yml — ui-deps builds the seven packages once for the ui jobs
243243
};
244244

245245
it('runs whenever any ui job runs', () => {
246-
// The union of the four conditions is Type Check UI's (and Build & E2E
247-
// UI's): Test UI and Lint UI run on a subset of it.
246+
// The union of the four conditions is Type Check UI's: Test UI and Lint UI
247+
// run on a subset of it, and so does Build & E2E UI, which is that union
248+
// narrowed by the covered conjunct (it skips on a push that borrowed the
249+
// queue's verdict, objectstack#31519). ui-deps keeps the union.
248250
expect(deps().if).toBe(job(UI_JOBS.typeCheck).if);
249-
expect(job(UI_JOBS.buildE2e).if).toBe(job(UI_JOBS.typeCheck).if);
251+
expect(job(UI_JOBS.buildE2e).if).toBe(
252+
String(job(UI_JOBS.typeCheck).if).replace(/ \}\}$/, " && needs.queue-verdict.outputs.covered != 'true' }}"),
253+
);
250254
});
251255

252256
it('hands over the pruned turbo cache, only when the prune found the build', () => {

0 commit comments

Comments
 (0)