Commit 9d16b51
docs(tests): explain why antd mock is used for Grid.useBreakpoint
Added comment explaining that we mock 'antd' directly rather than
'@superset-ui/core/components' because the latter causes circular
dependency issues with ActionButton during jest.requireActual
evaluation. Since Grid is re-exported from antd, mocking antd works.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 353681a commit 9d16b51
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| |||
0 commit comments