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-native and @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).


1. What to test, what to skip

Not every test is worth the maintenance cost. A few rules of thumb:

Related skills

More from cometchat/cometchat-skills

Installs
4
GitHub Stars
26
First Seen
Apr 28, 2026