Skip to content

Commit 5dde589

Browse files
committed
test(app-shell): the edited suites pay their dynamic lint/formula/plugin-detail load at collection (check:test-source-alias)
Claude-Session: https://claude.ai/code/session_01QSeKYmRepQK9DkZeU7F53D Co-authored-by: Claude <noreply@anthropic.com>
1 parent 3080a68 commit 5dde589

34 files changed

Lines changed: 109 additions & 0 deletions

File tree

‎ui/packages/app-shell/src/chrome/CommandPalette.studioScope-11863.test.tsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ vi.mock('@object-ui/auth', async (importOriginal) => ({
4444

4545
import { CommandPalette } from './CommandPalette';
4646
import { CommandPaletteProvider } from '../context/CommandPaletteProvider';
47+
// The source under test reaches a dynamic `import('@object-ui/plugin-detail')`: pay its load at
48+
// collection, never inside a case's clocked window (`check:test-source-alias`).
49+
import '@object-ui/plugin-detail';
4750

4851
/** `GET /api/v1/packages`: two app packages and a kernel one, in both served shapes. */
4952
const PACKAGES_PAYLOAD = {

‎ui/packages/app-shell/src/console/home/__tests__/HomePage.pendingDraftsPackageName-13136.test.tsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ vi.mock('../../../hooks/useInboxBell', () => ({ useInboxBell: () => ({ markRead:
127127
vi.mock('../../deployment-notice/DeploymentNotice', () => ({ DeploymentNotice: () => null }));
128128

129129
import { HomePage } from '../HomePage';
130+
// The source under test reaches a dynamic `import('@objectstack/lint')`: pay its load at
131+
// collection, never inside a case's clocked window (`check:test-source-alias`).
132+
import '@objectstack/lint';
130133

131134
const DRAFTS_ROUTE = '/api/v1/meta/_drafts';
132135
const PACKAGES_ROUTE = '/api/v1/packages';

‎ui/packages/app-shell/src/preview/__tests__/DraftChangesPanel.accessibleNames-12510.test.tsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ vi.mock('@object-ui/i18n', async (importOriginal) => ({
3030
}));
3131

3232
import { DraftChangesPanel } from '../DraftChangesPanel';
33+
// The source under test reaches a dynamic `import('@objectstack/lint')`: pay its load at
34+
// collection, never inside a case's clocked window (`check:test-source-alias`).
35+
import '@objectstack/lint';
3336

3437
const DRAFT_ROWS = [
3538
{ type: 'permission', name: 'qa_readers', packageId: 'com.x', label: 'QA Readers' },

‎ui/packages/app-shell/src/preview/__tests__/DraftChangesPanel.backfill-12929.test.tsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ vi.mock('@object-ui/i18n', async (importOriginal) => ({
3939
}));
4040

4141
import { DraftChangesPanel, backfillCandidates, type DraftPublishOptions } from '../DraftChangesPanel';
42+
// The source under test reaches a dynamic `import('@objectstack/lint')`: pay its load at
43+
// collection, never inside a case's clocked window (`check:test-source-alias`).
44+
import '@objectstack/lint';
4245

4346
const PACKAGE_ID = 'com.x';
4447

‎ui/packages/app-shell/src/preview/__tests__/DraftChangesPanel.bundleMember-12271.test.tsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ vi.mock('@object-ui/i18n', async (importOriginal) => ({
3838
}));
3939

4040
import { DraftChangesPanel } from '../DraftChangesPanel';
41+
// The source under test reaches a dynamic `import('@objectstack/lint')`: pay its load at
42+
// collection, never inside a case's clocked window (`check:test-source-alias`).
43+
import '@objectstack/lint';
4144

4245
afterEach(() => {
4346
vi.restoreAllMocks();

‎ui/packages/app-shell/src/preview/__tests__/DraftChangesPanel.changeNote.test.tsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ vi.mock('@object-ui/i18n', async (importOriginal) => ({
3838
}));
3939

4040
import { DraftChangesPanel, type DraftPublishOptions } from '../DraftChangesPanel';
41+
// The source under test reaches a dynamic `import('@objectstack/lint')`: pay its load at
42+
// collection, never inside a case's clocked window (`check:test-source-alias`).
43+
import '@objectstack/lint';
4144

4245
const PACKAGE_ID = 'com.x';
4346

‎ui/packages/app-shell/src/preview/__tests__/DraftChangesPanel.entryNote-26730.test.tsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ vi.mock('@object-ui/i18n', async (importOriginal) => ({
2424
}));
2525

2626
import { DraftChangesPanel, type DraftChangeEntry } from '../DraftChangesPanel';
27+
// The source under test reaches a dynamic `import('@objectstack/lint')`: pay its load at
28+
// collection, never inside a case's clocked window (`check:test-source-alias`).
29+
import '@objectstack/lint';
2730

2831
// `flows`: a stored plural spelling, which the sheet folds before the host sees it.
2932
const DRAFT_ROWS = [

‎ui/packages/app-shell/src/preview/__tests__/DraftChangesPanel.fieldOrder-27516.test.tsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ vi.mock('@object-ui/i18n', async (importOriginal) => ({
3535
}));
3636

3737
import { DraftChangesPanel, computeChangeDetail } from '../DraftChangesPanel';
38+
// The source under test reaches a dynamic `import('@objectstack/lint')`: pay its load at
39+
// collection, never inside a case's clocked window (`check:test-source-alias`).
40+
import '@objectstack/lint';
3841

3942
const NO_CHANGE = 'No differences detected — the draft matches the published version.';
4043
const ORDER_ROW = '~ Field order changed';

‎ui/packages/app-shell/src/preview/__tests__/DraftChangesPanel.fieldRows-13125.test.tsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ vi.mock('@object-ui/i18n', async (importOriginal) => ({
5252
}));
5353

5454
import { DraftChangesPanel, computeChangeDetail } from '../DraftChangesPanel';
55+
// The source under test reaches a dynamic `import('@objectstack/lint')`: pay its load at
56+
// collection, never inside a case's clocked window (`check:test-source-alias`).
57+
import '@objectstack/lint';
5558

5659
/** `provisionSearchCompanion`'s literal (description shortened; not read). */
5760
const SEARCH_COMPANION_DEF = {

‎ui/packages/app-shell/src/preview/__tests__/DraftChangesPanel.flowNodeRows-27356.test.tsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ vi.mock('@object-ui/i18n', async (importOriginal) => ({
3030
}));
3131

3232
import { DraftChangesPanel, computeChangeDetail } from '../DraftChangesPanel';
33+
// The source under test reaches a dynamic `import('@objectstack/lint')`: pay its load at
34+
// collection, never inside a case's clocked window (`check:test-source-alias`).
35+
import '@objectstack/lint';
3336

3437
const START = { id: 'start', type: 'start', label: 'Start' };
3538
const END = { id: 'end', type: 'end', label: 'End' };

0 commit comments

Comments
 (0)