title: How do I test the Elements value in React Native unit testing using Enzyme (Jest)
body: <p>I have the following Flash.js component to Test</p>
  
  <pre><code>export default class SnapshotChild extends Component {
  
  render() {
      return (
          &lt;View&gt;
              &lt;Text&gt;First Text&lt;/Text&gt;
              &lt;Text&gt;Second Text&lt;/Text&gt;
          &lt;/View&gt;
      );
  }}
  </code></pre>
  
  <p>And My test cases is</p>
  
  <pre><code>describe('Flash Card', () =&gt; {
        const flash = shallow(&lt;Flash /&gt;);
  
        it('test the `&lt;Text/&gt;` value',()=&gt;{
         console.log(flash.debug());
         expect(flash.find('Component Text').at(0).text()).toEqual('First Text');
        })});
  </code></pre>
  
  <p>Now when I run this code using <strong>npm test</strong> the result is showing </p>
  
  <pre><code>Expected value to equal:
    "First Text"
  Received:
    "&lt;Text /&gt;"
  </code></pre>
  
  <p>My expected result is <strong>"First Text"</strong> and getting "<strong>Text tag</strong>".
  What's the wrong, please please somebody help me on this. Thanks in advance.</p>