Skip to content

Commit b5a55f2

Browse files
committed
test(app-shell): the field-picker suites pay its dynamic imports at collection
Claude-Session: https://claude.ai/code/session_01Utp6Ca6EBDpTBZk8v46Jjv Co-authored-by: Claude <noreply@anthropic.com>
1 parent d82fd0e commit b5a55f2

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

‎ui/packages/app-shell/src/views/metadata-admin/FieldSelectorWidget.loadFailure.test.tsx‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@
5858
* arm by its disabled input, the completed arms by the combobox they render.
5959
*/
6060

61+
// The field picker's module graph reaches two dynamic imports (`celAuthoring.ts`);
62+
// their first load is paid at collection, never inside a clocked case (`check:test-source-alias`).
63+
import '@objectstack/formula';
64+
import '@objectstack/lint';
6165
import '@testing-library/jest-dom/vitest';
6266
import { describe, it, expect, vi, afterEach } from 'vitest';
6367
import { render, screen, cleanup, waitFor } from '@testing-library/react';

‎ui/packages/app-shell/src/views/metadata-admin/FormFieldSpec.dependsOn.test.tsx‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@
5151
* reader can consume — both index `[0]` and use it as a field NAME).
5252
*/
5353

54+
// The field picker's module graph reaches two dynamic imports (`celAuthoring.ts`);
55+
// their first load is paid at collection, never inside a clocked case (`check:test-source-alias`).
56+
import '@objectstack/formula';
57+
import '@objectstack/lint';
5458
import '@testing-library/jest-dom/vitest';
5559
import { describe, it, expect, afterEach, vi } from 'vitest';
5660
import { render, screen, cleanup, waitFor } from '@testing-library/react';

‎ui/packages/app-shell/src/views/metadata-admin/selector-placeholder.i18n.test.tsx‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license.
22

3+
// The field picker's module graph reaches two dynamic imports (`celAuthoring.ts`);
4+
// their first load is paid at collection, never inside a clocked case (`check:test-source-alias`).
5+
import '@objectstack/formula';
6+
import '@objectstack/lint';
37
import { describe, it, expect, afterEach, vi } from 'vitest';
48
import { render, screen, cleanup } from '@testing-library/react';
59
import { WIDGETS } from './widgets';

0 commit comments

Comments
 (0)