cometchat-native-testing
Installation
SKILL.md
Purpose
Teaches Claude how to write and run tests against a CometChat React Native integration. Covers:
- Unit / component tests with Jest + React Native Testing Library (RNTL)
- How to mock
@cometchat/chat-uikit-react-nativeand@cometchat/chat-sdk-react-native(both pull in native modules that fail in Node's jest-expo / jest-react-native environments) - Testing custom bubbles, headers, composer actions, empty states
- Snapshot testing pitfalls specific to theme-driven components
- E2E with Detox (iOS + Android native drivers) vs Maestro (declarative YAML)
- Which tests catch real regressions vs which are flaky churn
Ground truth: @cometchat/chat-uikit-react-native@5.3.3's example jest config (examples/SampleAppWithPushNotifications/jest.config.js) and the standard RN testing toolkit docs (callstack.github.io/react-native-testing-library, wix.github.io/Detox, maestro.mobile.dev). Official docs: https://www.cometchat.com/docs/ui-kit/react-native/overview · Docs MCP: claude mcp add --transport http cometchat-docs https://www.cometchat.com/docs/mcp (or fetch the URL directly without MCP).
1. What to test, what to skip
Not every test is worth the maintenance cost. A few rules of thumb: