<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Monorepo on recca0120 技術筆記</title><link>https://recca0120.github.io/tags/monorepo/</link><description>Recent content in Monorepo on recca0120 技術筆記</description><generator>Hugo -- gohugo.io</generator><language>zh-hant-tw</language><lastBuildDate>Mon, 20 Apr 2026 07:45:00 +0800</lastBuildDate><atom:link href="https://recca0120.github.io/tags/monorepo/index.xml" rel="self" type="application/rss+xml"/><item><title>Monorepo 跨層共用 HTTP Mock：外部 API 不適合用 Fake 時的方案</title><link>https://recca0120.github.io/2026/04/20/monorepo-shared-http-mock/</link><pubDate>Mon, 20 Apr 2026 07:45:00 +0800</pubDate><guid>https://recca0120.github.io/2026/04/20/monorepo-shared-http-mock/</guid><description>前兩篇講了用 Fake 處理內部 service，但外部 HTTP API 不適用這套。介紹怎麼在 monorepo 裡用 MSW / msw-fetch-mock 做同一份 HTTP mock 從前端測到後端，與 Fake 互補。</description><content:encoded>&lt;![CDATA[前兩篇講了用 Fake 處理內部 service，但外部 HTTP API 不適用這套。介紹怎麼在 monorepo 裡用 MSW / msw-fetch-mock 做同一份 HTTP mock 從前端測到後端，與 Fake 互補。<br/><img src="https://recca0120.github.io/2026/04/20/monorepo-shared-http-mock/featured.png" alt="Featured image"/>]]></content:encoded><enclosure url="https://recca0120.github.io/2026/04/20/monorepo-shared-http-mock/featured.png" type="image/png" length="0"/><media:content url="https://recca0120.github.io/2026/04/20/monorepo-shared-http-mock/featured.png" medium="image"/><category>Testing</category><category>MSW</category><category>Vitest</category><category>TypeScript</category><category>monorepo</category><category>Testing</category></item><item><title>Monorepo 跨層共用 Fake：一份測試替身從前端用到後端</title><link>https://recca0120.github.io/2026/04/20/monorepo-shared-fake-testing/</link><pubDate>Mon, 20 Apr 2026 07:30:00 +0800</pubDate><guid>https://recca0120.github.io/2026/04/20/monorepo-shared-fake-testing/</guid><description>在 monorepo 裡，前端、後端、業務邏輯各寫一套 mock 是重複勞動且容易行為不一致。這篇示範怎麼設計共用的 Fake，讓同一份測試替身從 React component 測到 API route 再到 service layer。</description><content:encoded>&lt;![CDATA[在 monorepo 裡，前端、後端、業務邏輯各寫一套 mock 是重複勞動且容易行為不一致。這篇示範怎麼設計共用的 Fake，讓同一份測試替身從 React component 測到 API route 再到 service layer。<br/><img src="https://recca0120.github.io/2026/04/20/monorepo-shared-fake-testing/featured.png" alt="Featured image"/>]]></content:encoded><enclosure url="https://recca0120.github.io/2026/04/20/monorepo-shared-fake-testing/featured.png" type="image/png" length="0"/><media:content url="https://recca0120.github.io/2026/04/20/monorepo-shared-fake-testing/featured.png" medium="image"/><category>Testing</category><category>Vitest</category><category>TypeScript</category><category>monorepo</category><category>Testing</category></item></channel></rss>