Commit 48aba96
test(sqllab): fix tsc failure in selected-word marker test
The shared `render` helper from `@superset-ui/core/spec` omits `wrapper`
from its options (it always supplies its own SupersetThemeProvider), so
passing a custom `wrapper` tripped TS2353 and failed the lint-frontend
tsc step. Nest the dark theme around the editor element instead; the
innermost emotion ThemeProvider is what the editor's useTheme() resolves,
so the assertion still exercises the dark-aware marker color.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 156aaf3 commit 48aba96
1 file changed
Lines changed: 9 additions & 6 deletions
File tree
- superset-frontend/packages/superset-ui-core/src/components/AsyncAceEditor
Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
115 | 118 | | |
116 | 119 | | |
117 | 120 | | |
| |||
0 commit comments