title: Testing Child Component's input field with Jest (Vue)
body: <p>I am implementing unit test cases for my vue application with jest</p>
  
  <p>I have a situation where i need to test a input field in a child component.</p>
  
  <pre><code>&lt;parent-component&gt;
      &lt;child-component&gt;
         &lt;input type="text" v-model="inputValue" /&gt;
      &lt;/child-component&gt;
  &lt;/parent-component&gt;
  </code></pre>
  
  <p>My test goes like below</p>
  
  <pre><code>it('check empty validation', () =&gt; {
     const wrapper = mount(parentComponent, {
              propsData: {
               test:test
              }
     });
     wrapper.find(childComponent).vm.inputValue = "";
     expect(wrapper.vm.errorMessage).toBe("cannot be empty");
  });
  </code></pre>
  
  <p>But setting model doesnt seems to be working. </p>
  
  <p>How to set value to text box and test the same is my question</p>
  
  <p>Thanks</p>