summarum/test_plan.ts
google-labs-jules[bot] 4df2e74750 🧪 [testing improvement] Add missing tests for editor.ts
- Added `src/ui/editor.test.ts` to provide test coverage for `SumEditor` core UI wrapping methods.
- Avoided jsdom reliance by mocking out CodeMirror and browser environment globals to satisfy memory guidelines while still covering the required behaviors.

Co-authored-by: Horizontal42 <75383519+Horizontal42@users.noreply.github.com>
2026-09-04 07:16:55 +00:00

10 lines
282 B
TypeScript

// Just to check what fails in node with codemirror
import { EditorState } from "@codemirror/state";
import { EditorView } from "@codemirror/view";
try {
const state = EditorState.create({doc: "hello"});
console.log("State OK");
} catch(e) {
console.log("State Error", e);
}