<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>numb_86</author_name>
  <author_url>https://blog.hatena.ne.jp/numb_86/</author_url>
  <blog_title>30歳からのプログラミング</blog_title>
  <blog_url>https://numb86-tech.hatenablog.com/</blog_url>
  <categories>
    <anon>React</anon>
    <anon>Jest</anon>
  </categories>
  <description>前回はクリックイベントのテストを行った。 今回は、DOMが正しくレンダリングされているかのテストを行う。 正確には、DOMではなくて、仮想DOMであり、コンポーネントと言ったほうがいいのだと思う。 テストの対象となるコード まずは、テストの対象となるコードをdom.jsとして書く。 // dom.js import React from 'react'; const Profile = props=&gt;{ const {data} = props; return( &lt;div&gt; 名前：{data.name}&lt;br /&gt; 年齢：{data.age} &lt;/div&gt; ); }; export { Pro…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnumb86-tech.hatenablog.com%2Fentry%2F2016%2F10%2F31%2F171417&quot; title=&quot;JestでReactのテストをする(3)　仮想DOMのテスト - 30歳からのプログラミング&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-10-31 17:14:17</published>
  <title>JestでReactのテストをする(3)　仮想DOMのテスト</title>
  <type>rich</type>
  <url>https://numb86-tech.hatenablog.com/entry/2016/10/31/171417</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
