[SOLVED] Framework7-Vue Component unit test error

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

Upgraded vue-test-utils to @vue/test-utils 1.0.0-beta.12 and the warnings seem to have gone away. Issue is still not clear but seems related to vue-test-utils rather than the framework7-vue components themselves.

Many thanks