<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Unit-Testing on Codeslog</title>
    <link>https://www.codeslog.com/en/tags/unit-testing/</link>
    <description>Recent content in Unit-Testing on Codeslog</description>
    <image>
      <title>Codeslog</title>
      <url>https://www.codeslog.com/images/default-cover.png?v=20260114T1436</url>
      <link>https://www.codeslog.com/images/default-cover.png?v=20260114T1436</link>
    </image>
    <generator>Hugo -- 0.150.0</generator>
    <language>en-US</language>
    <lastBuildDate>Fri, 10 Jul 2026 00:44:00 +0900</lastBuildDate>
    <atom:link href="https://www.codeslog.com/en/tags/unit-testing/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>mock, stub, spy — Understanding Test Doubles Properly</title>
      <link>https://www.codeslog.com/en/posts/frontend-testing-test-doubles/</link>
      <pubDate>Fri, 10 Jul 2026 00:44:00 +0900</pubDate>
      <guid>https://www.codeslog.com/en/posts/frontend-testing-test-doubles/</guid>
      <description>mock, stub, spy, fake… the confusing test-double vocabulary, sorted out. Cover all three with a single Vitest vi.fn() (Jest is nearly identical), and learn the one rule for how much to fake.</description>
    </item>
    <item>
      <title>Testing Async Code, Timers, and Errors</title>
      <link>https://www.codeslog.com/en/posts/frontend-testing-async/</link>
      <pubDate>Wed, 08 Jul 2026 00:27:00 +0900</pubDate>
      <guid>https://www.codeslog.com/en/posts/frontend-testing-async/</guid>
      <description>Promises, setTimeout, and the failure cases. Test frontend async code reliably with Vitest&amp;#39;s resolves/rejects matchers and fake timers — no real waiting, no flakiness.</description>
    </item>
    <item>
      <title>Unit Testing Basics — Pure Functions, Edge Cases, and the AAA Pattern</title>
      <link>https://www.codeslog.com/en/posts/frontend-testing-unit-basics/</link>
      <pubDate>Mon, 06 Jul 2026 00:20:00 +0900</pubDate>
      <guid>https://www.codeslog.com/en/posts/frontend-testing-unit-basics/</guid>
      <description>The sturdiest foundation there is: unit tests. Learn how to test pure functions, hunt edge cases, and structure every test with the AAA (Arrange-Act-Assert) pattern — with real-world examples.</description>
    </item>
    <item>
      <title>Wiring Vitest into the Demo App — All the Way to the First Green Light</title>
      <link>https://www.codeslog.com/en/posts/frontend-testing-setup-vitest/</link>
      <pubDate>Sun, 05 Jul 2026 00:05:00 +0900</pubDate>
      <guid>https://www.codeslog.com/en/posts/frontend-testing-setup-vitest/</guid>
      <description>Install Vitest and Testing Library in a React &#43; Vite &#43; TypeScript demo app and walk all the way to your first passing test — with the common setup pitfalls mapped out.</description>
    </item>
    <item>
      <title>Testing Terms, All in One Place — A Frontend Testing Glossary (Appendix)</title>
      <link>https://www.codeslog.com/en/posts/frontend-testing-glossary/</link>
      <pubDate>Sat, 04 Jul 2026 22:30:00 +0900</pubDate>
      <guid>https://www.codeslog.com/en/posts/frontend-testing-glossary/</guid>
      <description>From unit tests to flaky, fixtures, and MCP — every term in the Frontend Testing, Done Right series, explained for beginners and ordered the way you&amp;#39;ll meet them. Bookmark this page and come back whenever a word looks unfamiliar.</description>
    </item>
    <item>
      <title>Why Frontend Testing, Why Now — A Seatbelt for the AI Era</title>
      <link>https://www.codeslog.com/en/posts/frontend-testing-why-now/</link>
      <pubDate>Fri, 03 Jul 2026 16:33:17 +0900</pubDate>
      <guid>https://www.codeslog.com/en/posts/frontend-testing-why-now/</guid>
      <description>The faster AI writes code, the more testing matters. In this opener of the Frontend Testing, Done Right series, we cover what tests really give you, pyramid vs. trophy strategy, and the full curriculum ahead.</description>
    </item>
  </channel>
</rss>
