
react-native-harness
★ 315by callstackincubator · part of callstackincubator/react-native-harness
Write and debug React Native Harness tests for app code. Use when the user asks to create or fix tests that import from react-native-harness, mock modules, spy…
Write and debug React Native Harness tests for app code. Use when the user asks to create or fix tests that import from react-native-harness, mock modules, spy…
Inspect the full instructions your agent will receiveExpandCollapse
This is the exact playbook injected into your agent when the skill activates — shown here so you can audit it before installing. You don't need to read it to use the skill.
name: react-native-harness description: Write and debug React Native Harness tests for app code. Use when the user asks to create or fix tests that import from react-native-harness, mock modules, spy on functions, render React Native components on-device, use setupFiles or setupFilesAfterEnv, or add optional UI tests with @react-native-harness/ui.
Router only. Private setup before using this skill:
harness --versionRequire 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 coreIf you need more details on Harness, see the available CLI skill guides:
harness skill listLoad 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.
npx skills add https://github.com/callstackincubator/react-native-harness --skill react-native-harnessRun this in your project — your agent picks the skill up automatically.
No common issues documented yet. If you hit a problem, the repository's GitHub Issues page is the best place to look.