Skip to content

Commit 116e042

Browse files
committed
test(components): pay the react-runtime load at collection in the uiReadonlyWhen refusal pin
check:test-source-alias: the layout renderers reach @object-ui/react-runtime through a dynamic import, so the test imports it at module top. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CXSuJCALDHFWaV6Bv5
1 parent 309363d commit 116e042

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎ui/packages/components/src/renderers/form/__tests__/uiReadonlyWhen-fault-refuses-submit-36806.test.tsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest';
2323
import { render, screen, fireEvent, waitFor, cleanup } from '@testing-library/react';
2424
import { ComponentRegistry } from '@object-ui/core';
2525
import { toast } from '../../../ui/sonner';
26+
// The layout renderers reach `@object-ui/react-runtime` through a dynamic import;
27+
// pay that load during collection, not inside a clocked case (check:test-source-alias).
28+
import '@object-ui/react-runtime';
2629
// Registers the renderers at module scope (object-ui/no-dynamic-import-in-test-hook).
2730
import '../../../renderers';
2831

0 commit comments

Comments
 (0)