You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
replace named imports with explicit «React» references in mocks
Update mocked components and hooks to use explicit «React» references
instead of named imports. This change ensures compatibility with Jest's
module mocking and avoids potential conflicts with React's internal
APIs.
Additionally, replace JSX syntax with «React.createElement» in the
mocked «MockModelForm» for consistency and clarity in the mock's
implementation.
0 commit comments