<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kurosame-th</author_name>
  <author_url>https://blog.hatena.ne.jp/kurosame-th/</author_url>
  <blog_title>kurosame’s diary</blog_title>
  <blog_url>https://kurosame-th.hatenadiary.com/</blog_url>
  <categories>
    <anon>axios</anon>
    <anon>moxios</anon>
    <anon>Jest</anon>
    <anon>TypeScript</anon>
    <anon>JavaScript</anon>
  </categories>
  <description>JS/TS のユニットテストで axios をモックするのになんとなくmoxiosを使っていたが、やめようかなという話 理由は moxios が 3 年以上更新されていない Issues の返信や Dependabot のプルリクも放置されているっぽい moxios.stubRequestした axios のリクエストがたまに返ってこない時がある ある特定の URL でmoxios.stubRequest(URL, ...だと Jest から axios を実行した際、then に入ってこない時があるので、moxios.stubRequest(new RegExp(URL), ...という謎対…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkurosame-th.hatenadiary.com%2Fentry%2F2020%2F08%2F26%2F170050&quot; title=&quot;moxios を廃止して Jest.Mock に移行する - kurosame’s diary&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>2020-08-26 17:00:50</published>
  <title>moxios を廃止して Jest.Mock に移行する</title>
  <type>rich</type>
  <url>https://kurosame-th.hatenadiary.com/entry/2020/08/26/170050</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
