How can we import/include MathQuill in JavaScript?

£可爱£侵袭症+ 提交于 2021-01-28 06:37:07

问题


I'm trying to test my application using Jestjs. Since some of the buttons in my application are MathQuill math fields, I need to be able to somehow include/import MathQuill for testing the button presses using Jestjs. I've looked up a lot of resources online and I can't seem to find a way to do this.

If you've come across a similar dead end and happen to have resolved it, could you please give me some pointers on possible solutions/workarounds which I can try out? Thank you!

Edit:

I'm doing something like this in JavaScript:

let MQ = MathQuill.getInterface(MathQuill.getInterface.MAX);

I'm trying to figure out how to import the MathQuill library.

来源:https://stackoverflow.com/questions/51824812/how-can-we-import-include-mathquill-in-javascript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!