Commit 899664a
fix(editor): resolve TypeScript errors in editor component tests (#353)
- Remove unused imports (waitFor, type) from RenameWidget.test.tsx
- Remove unused import (waitFor) from FindReplaceWidget.test.tsx
- Remove unused inputStyle variable in FindReplaceWidget.test.tsx
- Add missing getScrolledVisiblePosition mock to createMockMonacoEditor
These changes fix TypeScript compilation errors (TS6133) for unused
variables and imports, and fix the missing mock property error (TS2339)
in the test files.
Co-authored-by: Droid Agent <droid@factory.ai>1 parent c0a2cd2 commit 899664a
File tree
3 files changed
+1
-4
lines changed- cortex-gui/src
- components/editor/__tests__
- test
3 files changed
+1
-4
lines changedLines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
360 | 359 | | |
361 | 360 | | |
362 | 361 | | |
363 | | - | |
364 | 362 | | |
365 | 363 | | |
366 | 364 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | | - | |
17 | 15 | | |
18 | 16 | | |
19 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
| |||
0 commit comments