We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm unit testing vue-echart with version 6.5.4, and my test code as following:
it("should render page", async () => { const wrapper = mount(MyComp, { props: { name: "name", data: [...] } }) expect(wrapper).not.to.be.null expect(wrapper).contains(VChart).to.be.true })
Error occurs running this test case:
[Vue warn]: Component is missing template or render function. at <Anonymous option= {....
More detail:
<v-chart option=""/>
MyComp
Could you please provide some helpful tutorial about this?
The text was updated successfully, but these errors were encountered:
Testing should be no different from other components. I don't think we have anything special to add.
Sorry, something went wrong.
确实有所不同,mount VChart组件都不能正确被渲染。 还是要考虑一下常见单元测试工具的集成吧,毕竟还是有人会关注的。
Sounds more like a bug with your testing library as it should support mounting any valid Vue component.
No branches or pull requests
Confirmation
Details
I'm unit testing vue-echart with version 6.5.4, and my test code as following:
Error occurs running this test case:
More detail:
<v-chart option=""/>
insideMyComp
Could you please provide some helpful tutorial about this?
The text was updated successfully, but these errors were encountered: