mirror of
https://github.com/Horizontal42/summarum.git
synced 2026-11-10 15:42:01 +03:00
- 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>
10 lines
282 B
TypeScript
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);
|
|
}
|