<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>wafuwafu13</author_name>
  <author_url>https://blog.hatena.ne.jp/wafuwafu13/</author_url>
  <blog_title>経験は何よりも饒舌</blog_title>
  <blog_url>https://wafuwafu13.hatenadiary.com/</blog_url>
  <categories>
    <anon>Deno</anon>
    <anon>テスト</anon>
    <anon>OSS活動</anon>
  </categories>
  <description>github.comtesting/snapshot.tsのgreen(bold(`\n &gt; ${updated} snapshots updated.`))の出力に影響する部分のリファクタリングをする際、異なるディレクトリにあるスナップショットテストの実行結果をテストで保証したかった。既存のコードを読んだら、スナップショットテストのテストにスナップショットを使っていたのでおもしろかったので、追加したテストについてメモしておく。 まず、一時的なディレクトリを作成し、受け取った関数を実行し、実行後に一時的なディレクトリを削除する関数を用意する。https://github.com/denolan…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwafuwafu13.hatenadiary.com%2Fentry%2F2023%2F06%2F21%2F053147&quot; title=&quot;スナップショットテストのテストにスナップショットを使う - 経験は何よりも饒舌&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>2023-06-21 05:31:47</published>
  <title>スナップショットテストのテストにスナップショットを使う</title>
  <type>rich</type>
  <url>https://wafuwafu13.hatenadiary.com/entry/2023/06/21/053147</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
