tiny-vue icon indicating copy to clipboard operation
tiny-vue copied to clipboard

🐛 [Bug]: vitest单元测试报错:报导入fluent-editor和getAttribute函数错误。

Open 0ruarua opened this issue 4 months ago • 1 comments

Version

3.25.0

Vue Version

3.5.13

Link to minimal reproduction

vitest单元测试报错:报导入fluent-editor和getAttribute函数错误。

Step to reproduce

如何复现:用vitest执行简单的对tiny-vue组件的单元测试。

What is expected

期望修复结果:不需要用户手动修改node_modules库的代码。

What is actually happening

vitest单元测试报错:报导入fluent-editor和getAttribute函数错误。 目前单元测试成功方式:手动把@opentiny/vue的fluent-editor组件的导入全部删掉,以及@opentiny/vue-mind-map/lib/pc.js:341行的.getAttribute前需加'?'。

What is your project name

yuanrong

Any additional comments (optional)

No response

0ruarua avatar Aug 04 '25 14:08 0ruarua