Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
test(ckeditor5-math): solve "duplicated modules" error
Elian Doran11a2bdb2dafb
diff --git a/packages/ckeditor5-math/tests/automath.ts b/packages/ckeditor5-math/tests/automath.tsindex c2c92a089f..691f3e8073 100644--- a/packages/ckeditor5-math/tests/automath.ts+++ b/packages/ckeditor5-math/tests/automath.ts@@ -1,6 +1,6 @@import Mathematics from '../src/math.js';import AutoMath from '../src/automath.js';-import { ClassicEditor, Clipboard, Paragraph, Undo, Typing, getData, setData } from 'ckeditor5';+import { ClassicEditor, Clipboard, Paragraph, Undo, Typing, _getModelData as getData, _setModelData as setData } from 'ckeditor5';import { expect } from 'chai';import type { SinonFakeTimers } from 'sinon';import { describe, beforeEach, it, afterEach } from "vitest";diff --git a/packages/ckeditor5-math/tests/mathui.ts b/packages/ckeditor5-math/tests/mathui.tsindex d3daf1b192..84d0e006b8 100644--- a/packages/ckeditor5-math/tests/mathui.ts+++ b/packages/ckeditor5-math/tests/mathui.ts@@ -1,11 +1,9 @@/* eslint-disable @typescript-eslint/no-non-null-assertion *//* globals document, Event */-import { setData as setModelData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model.js';-import MathUI from '../src/mathui';import MainFormView from '../src/ui/mainformview';-import { ClassicEditor, ContextualBalloon, ButtonView, View, Paragraph, ClickObserver, keyCodes } from 'ckeditor5';+import { ClassicEditor, ContextualBalloon, ButtonView, View, Paragraph, ClickObserver, keyCodes, _setModelData as setModelData } from 'ckeditor5';import { expect } from 'chai';import type { SinonSpy } from 'sinon';