Community生產力與協作github.com

sergiodxa/frontend-testing-best-practices

前端測試最佳實踐。強調端對端(E2E)測試優於單元測試、最小化模擬(mocking),以及測試行為而非實作細節。適用於撰寫測試或審查測試程式碼時。

frontend-testing-best-practices 是什麼?

此技能提供前端測試的專家級最佳實踐指南,重點在於採用端對端(E2E)測試作為主要策略,而非傳統的單元測試。它宣導最小化模擬(mocking),並鼓勵開發者測試應用程式的行為與使用者互動,而非內部實作細節。支援 Claude Code、Cursor、Codex 等 AI 平台,透過 SKILL.md 文件直接整合進開發工作流程。此方法有助於建立更可靠、更貼近真實使用者情境的測試套件,減少脆弱的測試案例,並加速測試維護。適用於所有撰寫或審查前端測試程式碼的開發者。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/sergiodxa/agent-skills/tree/main/skills/frontend-testing-best-practices

Installed? Explore more 生產力與協作 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

frontend-testing-best-practices 是做什麼的?

前端測試最佳實踐。強調端對端(E2E)測試優於單元測試、最小化模擬(mocking),以及測試行為而非實作細節。適用於撰寫測試或審查測試程式碼時。

Individual skills in this repo

This repo contains 2 individual skills — each has its own dedicated page.

相關技能