LabscoMCP early access ↗
REPO PACKAGECOMMUNITY

callstackincubator react-native-harness

callstackincubator · publisher315 GitHub starsMIT · Listed as freegithub.com/callstackincubator/react-native-harness

LABSCO SUMMARY

Summary

react-native-harness is one skill, teaching an agent to write Jest-style tests that run on a real iOS simulator, Android emulator, or browser, with full access to native modules.

The single skill covers everything the library does: importing from react-native-harness, mocking modules, spying on functions, rendering React Native components on-device, wiring setupFiles and setupFilesAfterEnv, and adding the optional @react-native-harness/ui package for UI-level tests. It fills a specific gap — Jest alone runs in Node and can't touch a real native module, and Maestro drives the UI but has no describe/it test syntax.

This is for a React Native team that wants native-module or platform-specific behavior under real test coverage, not for a project whose tests are pure JavaScript logic that Jest already covers on its own. Running it means having an actual iOS or Android environment configured — a simulator, an emulator, or a real device — or a browser for the web target, not just installing an npm package.

READ MORE

One skill, no separate guide for CI.

The README documents running react-native-harness in CI/CD as a feature, but there is no second skill covering it — the single skill here is the whole package, and its accuracy is the whole bet if the library's API changes.

callstackincubator/react-native-harness — Repository | Labsco