Hello,
My unit tests for Vue components are throwing warning errors due to missing properties for F7 components, seemingly related to the theme:
[Vue warn]: Error in render: "TypeError: Cannot read property 'md' of undefined"
found in
---> <F7Link>
<F7NavRight>
<F7Navbar>
<F7Page>
<Root>
TypeError: Cannot read property 'md' of undefined
at Proxy.render (../node_modules/framework7-vue/dist/framework7-vue.js:1802:121)
Looking at that line it relates to self.$theme.md in the f7Link component.
Tests are using vue-test-utils:
const wrapper = mount(MyComponent, {
attachToDocument: true,
store,
localVue
})
Am I missing a setting when mounting? Can anyone give any guidance on how to run unit tests with the framework7-vue components?
Many thanks