Skip to content

Commit ad43f0b

Browse files
committed
test(app-shell): the retype pin file warms the lint and formula engines at module top
Claude-Session: https://claude.ai/code/session_01Q4EjjQkY5yXZrN9BEA3rEK Co-authored-by: Claude <noreply@anthropic.com>
1 parent 48d632c commit ad43f0b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎ui/packages/app-shell/src/views/metadata-admin/inspectors/ObjectFieldInspector.referenceNameVisible-29629.test.tsx‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ import { render, screen, cleanup, within } from '@testing-library/react';
2424
import userEvent from '@testing-library/user-event';
2525
import { FieldSchema } from '@objectstack/spec/data';
2626
import { loadStudioCatalogue } from '@object-ui/i18n/namespaces/studio';
27+
// The inspector loads the CEL lint and formula engines through dynamic
28+
// imports; pull them in at module top so their first load is paid at
29+
// collection, not inside a case's bounded wait.
30+
import '@objectstack/lint';
31+
import '@objectstack/formula';
2732

2833
const h = vi.hoisted(() => {
2934
const CATALOG: Array<Record<string, unknown>> = [{ name: 'vendor', label: 'Vendor' }];

0 commit comments

Comments
 (0)