Skip to content

Commit 0c64d31

Browse files
committed
test(floors, ui): the esm-load floor test reads the shared published-package floor
Claude-Session: https://claude.ai/code/session_01ADHkmTNh6kDC6Lu2Yr7s5v Co-authored-by: Claude <noreply@anthropic.com>
1 parent 3873098 commit 0c64d31

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎ui/scripts/__tests__/check-node-esm-load.test.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import fs from 'node:fs';
33
import os from 'node:os';
44
import path from 'node:path';
55
import { fileURLToPath } from 'node:url';
6+
import { UI_PUBLISHED_PACKAGE_FLOOR } from './helpers/ui-package-population.mjs';
67

78
import {
89
ESM_MODULE_EDGE,
@@ -448,7 +449,10 @@ describe('the load leg evaluates rather than resolves', () => {
448449

449450
describe('the gate cannot be green about nothing', () => {
450451
it('keeps a floor under both legs', () => {
451-
expect(MIN_PACKAGES).toBeGreaterThanOrEqual(30);
452+
// The package floor is the shared ui published-package floor, not a number of
453+
// its own: re-measuring the population moves it in one place for every reader.
454+
expect(MIN_PACKAGES).toBe(UI_PUBLISHED_PACKAGE_FLOOR);
455+
expect(MIN_PACKAGES).toBeGreaterThan(0);
452456
expect(MIN_LOADED).toBeGreaterThan(0);
453457
});
454458

0 commit comments

Comments
 (0)