<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tomoima525</author_name>
  <author_url>https://blog.hatena.ne.jp/tomoima525/</author_url>
  <blog_title>tomoima525's blog</blog_title>
  <blog_url>https://tomoima525.hatenablog.com/</blog_url>
  <categories>
    <anon>GraphQL</anon>
    <anon>React</anon>
    <anon>Apollo</anon>
    <anon>test</anon>
    <anon>tips</anon>
  </categories>
  <description>MockProviderはReact Apolloクライアントのリクエストや結果をモックするのに推奨されている方法です。サンプルコードを見る限りではいい感じに動くように見えますが、実際に使うとなると、結構ハマりどころがあります。MockProviderの使い方のヒントについてはすでにmediumなどに素晴らしい記事がありますが、それでもMockProvierの予期せぬ動作に数時間を溶かしてしまいました。 そんなわけでこの記事では、レスポンスを適切にモックするまでに得られた知見をシェアします。 なおテスト環境は以下です: @apollo/client: 3.2.0 react-native:0.…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftomoima525.hatenablog.com%2Fentry%2F2021%2F02%2F22%2F081942&quot; title=&quot;React Apollo MockProvider の知見をまとめた - tomoima525&amp;#39;s blog&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>2021-02-22 08:19:42</published>
  <title>React Apollo MockProvider の知見をまとめた</title>
  <type>rich</type>
  <url>https://tomoima525.hatenablog.com/entry/2021/02/22/081942</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
