You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever testing a component that includes a vue-tel-input-vuetify component, the following error is logged while running test cases:
PASS src/components/fields/HePassword.test.js
PASS src/components/fields/HePhone.test.js
● Console
console.error node_modules/vue/dist/vue.runtime.common.dev.js:621
[Vue warn]: Failed to mount component: template or render functionnot defined.
found in
---><VueTelInputVuetify><Anonymous><Root>
Test Suites: 2 passed, 2 total
Tests: 6 passed, 6 total
Snapshots: 0 total
Time: 1.722s
Ran all test suites.
Expected behavior
No errors (other than test cases failing) should be logged.
import{mount}from'@vue/test-utils'importPhonefrom'./HePhone.vue'describe('Phone',()=>{constphone=mount(Phone);// Component basicstest('Is a Vue instance',()=>expect(phone.isVueInstance).toBeTruthy())test('Has no data function',()=>expect(typeofphone.data).toBe('undefined'))test('Has a props function',()=>expect(typeofphone.props).toBe('function'))// Component specific testsexpect(phone.html()).toContain(' ')})
Current behavior
Whenever testing a component that includes a vue-tel-input-vuetify component, the following error is logged while running test cases:
Expected behavior
No errors (other than test cases failing) should be logged.
Versions
Libraries:
Environment:
Additional context
Basic unit tests seem to pass:
With test setup:
The text was updated successfully, but these errors were encountered: