<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>polamjag</author_name>
  <author_url>https://blog.hatena.ne.jp/polamjag/</author_url>
  <blog_title>polamjaggy</blog_title>
  <blog_url>https://polamjag.hatenablog.jp/</blog_url>
  <categories>
    <anon>テクノロジー</anon>
  </categories>
  <description>以下のようなアサーションをまれに見るのだが: interface Foo { param: number; } const something: Foo | undefined = ...; const theOther: Foo | undefined = ...; expect(something?.param).toBe(theOther?.param); このテストは、actual / expected の値の両方についてoptional chainingがundefined側に倒れてしまったときに、expect(undefined).toBe(undefined) なことをアサートし…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpolamjag.hatenablog.jp%2Fentry%2F2026%2F07%2F31%2F105058&quot; title=&quot;TypeScriptアプリケーションのテストにおいて、アサーション内でのoptional chainingやnullish coalescing operatorの利用をなるべく避ける - polamjaggy&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>2026-07-31 10:50:58</published>
  <title>TypeScriptアプリケーションのテストにおいて、アサーション内でのoptional chainingやnullish coalescing operatorの利用をなるべく避ける</title>
  <type>rich</type>
  <url>https://polamjag.hatenablog.jp/entry/2026/07/31/105058</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
