react-native-harness
撰寫和除錯 React Native Harness 測試,用於應用程式碼。當使用者要求建立或修復從 react-native-harness 匯入、模擬模組、監控…的測試時使用。
npx skills add https://github.com/callstackincubator/react-native-harness --skill react-native-harnessRouter only. Private setup before using this skill:
harness --version
Require react-native-harness >= 1.3.0-rc.1; older CLIs lack these skill commands. If older, run npm install -g react-native-harness@latest, recheck, then continue. If you cannot upgrade, stop and tell the user. Do not include version or upgrade commands in final plans.
Before your first Harness command or plan, read the version-matched CLI guide:
harness skill get core
If you need more details on Harness, see the available CLI skill guides:
harness skill list
Load additional skills via harness skill get <name> when needed.
Use this skill only to route into version-matched CLI guidance. Let the installed CLI skill files provide exact workflow guidance, API usage, and current test-writing rules.