Community程式設計與開發github.com

langgenius/frontend-testing

為 Dify 前端元件、鉤子和工具程式生成 Vitest + React Testing Library 測試。觸發於測試、規格檔案、覆蓋率、Vitest、RTL、單元測試、整合測試或撰寫/審查測試請求。

frontend-testing 是什麼?

此技能專為 Dify 前端專案設計,自動生成使用 Vitest 和 React Testing Library 的測試案例。它能處理前端元件、自訂鉤子(hooks)及工具函式(utilities)的測試,並根據開發者的請求類型(如撰寫測試、審查測試或檢查覆蓋率)自動觸發。技能支援單元測試和整合測試,並能辨識測試規格檔案(spec files)、覆蓋率報告、Vitest 設定和 React Testing Library 相關的提示。透過此技能,開發者可以快速建立可靠的測試套件,確保 Dify 前端程式碼的品質與穩定性,同時減少手動編寫測試的重複性工作。

相容平台~Claude Code~Codex CLI~Cursor
Part ofReact
npx skills add https://github.com/langgenius/dify/tree/main/skills/frontend-testing

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

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

說明文件

frontend-testing 是做什麼的?

為 Dify 前端元件、鉤子和工具程式生成 Vitest + React Testing Library 測試。觸發於測試、規格檔案、覆蓋率、Vitest、RTL、單元測試、整合測試或撰寫/審查測試請求。

Individual skills in this repo

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

相關技能