<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>naokirin</author_name>
  <author_url>https://blog.hatena.ne.jp/naokirin/</author_url>
  <blog_title>What is it, naokirin?</blog_title>
  <blog_url>https://naokirin.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
    <anon>プログラミング-Javascript</anon>
  </categories>
  <description>Jestは、JavaScriptのテスティングフレームワークです。 一般的にテスティングフレームワークは、モック機能は別ライブラリとなっていることが多いのですが、Jestには組み込みのモックライブラリが存在しています。もちろん他のモックライブラリを利用することもできますが、Jest本体にあるということでこちらを使うことが多いと思います。 このJestに組み込まれているモックライブラリ周りを整理しておこうと思います。 jestjs.io Jestのモック Test Doubleの分類として、Dummy、Fake、Mock、Spy、Stubがあります*1が、Jestではこのように細かい分類で提供さ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnaokirin.hatenablog.com%2Fentry%2F2022%2F02%2F23%2F180811&quot; title=&quot;JestでMock、Spyを使ってみる - What is it, naokirin?&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>2022-02-23 18:08:11</published>
  <title>JestでMock、Spyを使ってみる</title>
  <type>rich</type>
  <url>https://naokirin.hatenablog.com/entry/2022/02/23/180811</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
