{"id":"e530b268-aa69-400d-b153-af7337850462","shortId":"8tBqVY","kind":"skill","title":"cometchat-flutter-v6-testing","tagline":"Testing patterns for CometChat Flutter UIKit v6 (beta, Bloc-based). Covers flutter_test + bloc_test for Bloc unit tests, mocktail for SDK mocking, widget tests around the Bloc-driven CometChat widgets, integration_test for real-device flows, golden tests for theming, and CI on Gi","description":"## Purpose\n\nTest recipes for Flutter UIKit v6 (beta, Bloc-based). Most of the v5 patterns carry over; the deltas are around state-management primitives (Bloc, not GetX) and the unified `cometchat_chat_uikit` package (calls bundled — see `cometchat-flutter-v6-calls`).\n\n**Read these other skills first:**\n- `cometchat-flutter-v6-core` — UIKitSettings, init/login order, hard rules\n- `cometchat-flutter-v6-events` — Bloc-based event streams\n- `cometchat-flutter-v5-testing` — patterns that aren't v6-specific (CI config, golden tests, mocktail intro) — read first if you haven't\n\n**Ground truth:**\n- bloc_test — https://pub.dev/packages/bloc_test\n- flutter_bloc — https://bloclibrary.dev/\n\n---\n\n## 1. The v5 → v6 testing delta\n\n| Concern | v5 | v6 |\n|---|---|---|\n| State management | GetX | Bloc |\n| DI in tests | `Get.reset()` between tests | Provide via `MultiBlocProvider` per test, or use `BlocProvider.value` with a mock |\n| Calls package | `cometchat_calls_uikit` (separate) | bundled into `cometchat_chat_uikit` |\n| Init order | `..callingExtension = CometChatCallingExtension()` on UIKitSettingsBuilder | `CometChatUIKitCalls.init` inside `CometChatUIKit.init` onSuccess |\n| Listener IDs | Stable string for `addCallListener` | Bloc subscription, automatic cleanup |\n| State persistence between tests | Get singletons leak — must reset | Bloc state is per-instance — no global reset, but providers must be re-created per test |\n\nMost assertions stay the same; the wiring around them changes.\n\n---\n\n## 2. Mocktail + bloc_test setup\n\n```yaml\n# pubspec.yaml\ndev_dependencies:\n  flutter_test:\n    sdk: flutter\n  bloc_test: ^9.0.0\n  mocktail: ^1.0.0\n  integration_test:\n    sdk: flutter\n```\n\n### Service abstraction\n\nSame shape as v5 (see `cometchat-flutter-v5-testing/SKILL.md` Section 2):\n\n```dart\n// lib/services/cometchat_service.dart\nabstract class CometChatService {\n  Future<void> init();\n  Future<User> login(String uid);\n  Future<void> logout();\n  User? getLoggedInUser();\n  Stream<TextMessage> messageStream();\n}\n\nclass CometChatServiceImpl implements CometChatService {\n  @override\n  Future<void> init() async {\n    final settings = (UIKitSettings.builder()\n      ..appId = CometChatConfig.appId\n      ..region = CometChatConfig.region\n      ..authKey = CometChatConfig.authKey\n      ..subscriptionType = CometChatSubscriptionType.allUsers)\n      .build();\n\n    await Future<void>.value();   // Real impl: completer-wrap CometChatUIKit.init\n    // Then chain calls init in onSuccess (rule 1.1 from cometchat-flutter-v6-calls)\n  }\n\n  // ... rest\n}\n```\n\n---\n\n## 3. Bloc unit tests with bloc_test\n\n```dart\n// test/blocs/auth_bloc_test.dart\nimport 'package:bloc_test/bloc_test.dart';\nimport 'package:flutter_test/flutter_test.dart';\nimport 'package:mocktail/mocktail.dart';\nimport 'package:your_app/blocs/auth_bloc.dart';\nimport 'package:your_app/services/cometchat_service.dart';\n\nclass MockCometChatService extends Mock implements CometChatService {}\nclass FakeAuthEvent extends Fake implements AuthEvent {}\n\nvoid main() {\n  late MockCometChatService mockService;\n\n  setUpAll(() {\n    registerFallbackValue(FakeAuthEvent());\n  });\n\n  setUp(() {\n    mockService = MockCometChatService();\n  });\n\n  blocTest<AuthBloc, AuthState>(\n    'emits Authenticated when login succeeds',\n    setUp: () {\n      when(() => mockService.init()).thenAnswer((_) async {});\n      when(() => mockService.login(any())).thenAnswer(\n        (_) async => User(uid: 'cometchat-uid-1', name: 'Alice'),\n      );\n    },\n    build: () => AuthBloc(service: mockService),\n    act: (bloc) => bloc.add(LoginRequested(uid: 'cometchat-uid-1')),\n    expect: () => [\n      isA<AuthLoading>(),\n      isA<Authenticated>(),\n    ],\n    verify: (_) {\n      verify(() => mockService.init()).called(1);\n      verify(() => mockService.login('cometchat-uid-1')).called(1);\n    },\n  );\n\n  blocTest<AuthBloc, AuthState>(\n    'emits AuthError when login fails',\n    setUp: () {\n      when(() => mockService.init()).thenAnswer((_) async {});\n      when(() => mockService.login(any())).thenThrow(Exception('401 Unauthorized'));\n    },\n    build: () => AuthBloc(service: mockService),\n    act: (bloc) => bloc.add(LoginRequested(uid: 'cometchat-uid-1')),\n    expect: () => [\n      isA<AuthLoading>(),\n      predicate<AuthState>((s) => s is AuthError && s.message.contains('Unauthorized')),\n    ],\n  );\n}\n```\n\n`bloc_test` handles the boilerplate of subscribing to the bloc, dispatching events, and asserting state sequence.\n\n---\n\n## 4. Widget tests with BlocProvider\n\n```dart\nimport 'package:flutter/material.dart';\nimport 'package:flutter_test/flutter_test.dart';\nimport 'package:flutter_bloc/flutter_bloc.dart';\nimport 'package:mocktail/mocktail.dart';\nimport 'package:your_app/screens/chat_screen.dart';\nimport 'package:your_app/blocs/auth_bloc.dart';\n\nclass MockAuthBloc extends MockBloc<AuthEvent, AuthState> implements AuthBloc {}\nclass FakeAuthState extends Fake implements AuthState {}\nclass FakeAuthEvent extends Fake implements AuthEvent {}\n\nvoid main() {\n  setUpAll(() {\n    registerFallbackValue(FakeAuthState());\n    registerFallbackValue(FakeAuthEvent());\n  });\n\n  testWidgets('shows loading on AuthLoading state', (tester) async {\n    final mockBloc = MockAuthBloc();\n    when(() => mockBloc.state).thenReturn(AuthLoading());\n\n    await tester.pumpWidget(\n      MaterialApp(\n        home: BlocProvider<AuthBloc>.value(\n          value: mockBloc,\n          child: ChatScreen(),\n        ),\n      ),\n    );\n\n    expect(find.byType(CircularProgressIndicator), findsOneWidget);\n  });\n\n  testWidgets('shows error on AuthError state', (tester) async {\n    final mockBloc = MockAuthBloc();\n    when(() => mockBloc.state).thenReturn(AuthError(message: '401 Unauthorized'));\n\n    await tester.pumpWidget(\n      MaterialApp(\n        home: BlocProvider<AuthBloc>.value(value: mockBloc, child: ChatScreen()),\n      ),\n    );\n\n    expect(find.textContaining('Unauthorized'), findsOneWidget);\n  });\n}\n```\n\n`BlocProvider.value` is for tests; `BlocProvider(create: ...)` is for production.\n\n---\n\n## 5. Mocking the kit's call widgets\n\nV6 calls widgets fire BLoC events internally. Mocking is the same pattern — wrap your custom call surfaces in service abstractions, mock at that layer.\n\nFor widgets like `<CometChatOngoingCall>` that you don't control, the strategy is the same as v5: replace at composition boundary or skip widget tests for them and rely on integration tests.\n\n---\n\n## 6. Integration tests (same as v5)\n\n```dart\n// integration_test/chat_test.dart\nimport 'package:flutter/material.dart';\nimport 'package:flutter_test/flutter_test.dart';\nimport 'package:integration_test/integration_test.dart';\nimport 'package:your_app/main.dart' as app;\n\nvoid main() {\n  IntegrationTestWidgetsFlutterBinding.ensureInitialized();\n\n  testWidgets('login and see conversations', (tester) async {\n    app.main();\n    await tester.pumpAndSettle(Duration(seconds: 10));\n\n    expect(find.text('Welcome'), findsOneWidget);\n\n    await tester.tap(find.text('Messages'));\n    await tester.pumpAndSettle();\n\n    expect(find.byType(ListTile), findsAtLeastNWidgets(1));\n  });\n}\n```\n\nSame shape as v5; the underlying SDK is different but the integration test contract is the same.\n\n---\n\n## 7. Golden tests (same as v5)\n\nSee `cometchat-flutter-v5-testing/SKILL.md` Section 6 — the patterns are identical. The kit's V6 themes use Material 3 by default; pin Flutter version to ensure golden stability.\n\n---\n\n## 8. Calls testing in v6\n\nV6 bundles calls into `cometchat_chat_uikit`. Tests that touch calls:\n\n```dart\nblocTest<CallBloc, CallState>(\n  'emits CallActive when initiateCall succeeds',\n  setUp: () {\n    when(() => mockService.initiateCall(any())).thenAnswer(\n      (_) async => Call(sessionId: 'session-123'),\n    );\n  },\n  build: () => CallBloc(service: mockService),\n  act: (bloc) => bloc.add(InitiateCall(receiverUid: 'cometchat-uid-2')),\n  expect: () => [isA<CallInitiating>(), isA<CallActive>()],\n);\n```\n\n**The init order rule applies in tests too:** mock `init` to resolve before any `initiateCall`-related test runs. The simplest way is to wire init in your test's `setUpAll`:\n\n```dart\nsetUpAll(() async {\n  registerFallbackValue(FakeCallEvent());\n  // If your AuthBloc init is shared, run it once here:\n  // await mockAuthBloc.add(AppStarted());\n});\n```\n\nFor widget tests of call screens, see `cometchat-flutter-v6-calls` Section 7's verification checklist — the same checks belong in the test file:\n\n- Was init called before the call screen mounted?\n- Does the call screen show the WebRTC view after the session starts?\n- Does hangup call `endSession` AND `Navigator.pop`?\n\n---\n\n## 9. Anti-patterns\n\n1. **Reusing a single `MockBloc` across tests** without resetting. State leaks. Either re-create per test or use `tearDown(() => mockBloc.close())`.\n2. **Skipping `registerFallbackValue` for events / states.** mocktail crashes the test runner without it; the error message is unclear.\n3. **`Bloc` subclasses with side effects in their constructor.** Tests mount the bloc and side effects fire (e.g. real SDK init). Move side effects to event handlers, dispatch them explicitly in tests.\n4. **`emit` checks that depend on equality.** Bloc states often have `Equatable` mixed in; if not, `expect: () => [SomeState()]` fails because two `SomeState()` instances aren't equal. Use `predicate<T>(...)` or verify via `isA<SomeState>()` + later assertions.\n5. **Real `flutter_bloc` ChangeNotifierProvider in widget tests.** Mock the bloc directly via `BlocProvider.value(value: mockBloc)`.\n6. **Skipping pump after state emit.** `bloc_test` handles state assertions, but widget tests need explicit `await tester.pump()` after the bloc emits or the rebuild won't happen.\n\n## 10. Verification checklist\n\n- [ ] `CometChatService` abstraction wrapping the SDK\n- [ ] `MockCometChatService` and `MockAuthBloc` (`MockBloc<E, S>`) in test files\n- [ ] `registerFallbackValue` calls in `setUpAll` for events + states\n- [ ] At least one bloc_test for \"AuthBloc emits Authenticated on successful login\"\n- [ ] At least one bloc_test for \"AuthBloc emits AuthError on login failure\"\n- [ ] At least one widget test for \"shows loading until login resolves\"\n- [ ] At least one widget test for \"error UI on auth failure\"\n- [ ] Integration test for login + see conversations\n- [ ] Calls integration test asserting init order rule (chat init → calls init → calls available)\n- [ ] CI uses dedicated CometChat test app via `--dart-define`\n- [ ] Flutter version pinned in CI\n\n## 11. Pointers\n\n- `cometchat-flutter-v6-core` — init/login order, hard rules\n- `cometchat-flutter-v6-events` — Bloc event streams\n- `cometchat-flutter-v6-calls` — calls integration; hard rules to assert in tests\n- `cometchat-flutter-v6-troubleshooting` — when tests pass but production breaks\n- `cometchat-flutter-v5-testing` — for shared patterns (CI, goldens, mocktail intro)\n- `cometchat-flutter-v6-migration` — v5 → v6 migration recipes (test rewrites)","tags":["cometchat","flutter","testing","skills","agent-skills","ai-agent","chat","claude-code","cursor","messaging","nextjs","react"],"capabilities":["skill","source-cometchat","skill-cometchat-flutter-v6-testing","topic-agent-skills","topic-ai-agent","topic-chat","topic-claude-code","topic-cometchat","topic-cursor","topic-messaging","topic-nextjs","topic-react","topic-react-native","topic-ui-kit"],"categories":["cometchat-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/cometchat/cometchat-skills/cometchat-flutter-v6-testing","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add cometchat/cometchat-skills","source_repo":"https://github.com/cometchat/cometchat-skills","install_from":"skills.sh"}},"qualityScore":"0.463","qualityRationale":"deterministic score 0.46 from registry signals: · indexed on github topic:agent-skills · 27 github stars · SKILL.md body (10,954 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-18T19:04:52.187Z","embedding":null,"createdAt":"2026-05-18T07:04:24.817Z","updatedAt":"2026-05-18T19:04:52.187Z","lastSeenAt":"2026-05-18T19:04:52.187Z","tsv":"'-123':847 '/packages/bloc_test':153 '/skill.md':289,789 '1':157,427,442,450,456,458,491,759,967 '1.0.0':272 '1.1':345 '10':744,1116 '11':1220 '2':255,291,860,988 '3':353,803,1006 '4':517,1038 '401':477,617 '5':642,1072 '6':703,791,1088 '7':777,925 '8':813 '9':963 '9.0.0':270 'abstract':278,294,668,1120 'across':972 'act':434,483,852 'addcalllisten':213 'alic':429 'anti':965 'anti-pattern':964 'app':728,1210 'app.main':739 'app/blocs/auth_bloc.dart':376,544 'app/main.dart':726 'app/screens/chat_screen.dart':540 'app/services/cometchat_service.dart':380 'appid':320 'appli':868 'appstart':911 'aren':130,1061 'around':32,75,252 'assert':246,514,1071,1098,1195,1249 'async':316,416,421,471,579,608,738,843,896 'auth':1184 'authbloc':405,431,460,480,552,901,1146,1158 'authent':408,1148 'autherror':463,498,605,615,1160 'authev':392,549,564 'authkey':324 'authload':576,586 'authstat':406,461,550,558 'automat':216 'avail':1204 'await':329,587,619,740,749,753,909,1104 'base':16,64,120 'belong':932 'beta':13,61 'bloc':15,20,23,35,63,80,119,149,155,169,214,227,257,268,354,358,364,435,484,501,510,653,853,1007,1018,1045,1075,1082,1094,1108,1143,1155,1236 'bloc-bas':14,62,118 'bloc-driven':34 'bloc.add':436,485,854 'bloc/flutter_bloc.dart':533 'bloclibrary.dev':156 'blocprovid':521,591,623,637 'blocprovider.value':183,633,1085 'bloctest':404,459,830 'boilerpl':505 'boundari':691 'break':1262 'build':328,430,479,848 'bundl':91,193,819 'call':90,97,187,190,340,351,449,457,647,650,664,814,820,828,844,916,923,939,942,947,959,1134,1192,1201,1203,1243,1244 'callact':834 'callbloc':831,849 'callingextens':200 'callstat':832 'carri':70 'chain':339 'chang':254 'changenotifierprovid':1076 'chat':87,196,823,1199 'chatscreen':596,628 'check':931,1040 'checklist':928,1118 'child':595,627 'ci':51,135,1205,1219,1271 'circularprogressind':599 'class':295,309,381,387,545,553,559 'cleanup':217 'cometchat':2,9,37,86,94,104,114,124,189,195,285,348,425,440,454,489,785,822,858,920,1208,1223,1232,1240,1253,1264,1276 'cometchat-flutter-v5-testing':123,284,784,1263 'cometchat-flutter-v6-calls':93,347,919,1239 'cometchat-flutter-v6-core':103,1222 'cometchat-flutter-v6-events':113,1231 'cometchat-flutter-v6-migration':1275 'cometchat-flutter-v6-testing':1 'cometchat-flutter-v6-troubleshooting':1252 'cometchat-uid':424,439,453,488,857 'cometchatcallingextens':201 'cometchatconfig.appid':321 'cometchatconfig.authkey':325 'cometchatconfig.region':323 'cometchatservic':296,312,386,1119 'cometchatserviceimpl':310 'cometchatsubscriptiontype.allusers':327 'cometchatuikit.init':206,337 'cometchatuikitcalls.init':204 'complet':335 'completer-wrap':334 'composit':690 'concern':163 'config':136 'constructor':1014 'contract':773 'control':680 'convers':736,1191 'core':107,1226 'cover':17 'crash':995 'creat':242,638,981 'custom':663 'dart':292,360,522,709,829,894,1213 'dart-defin':1212 'dedic':1207 'default':805 'defin':1214 'delta':73,162 'depend':263,1042 'dev':262 'devic':44 'di':170 'differ':768 'direct':1083 'dispatch':511,1033 'driven':36 'durat':742 'e':1128 'e.g':1023 'effect':1011,1021,1029 'either':978 'emit':407,462,833,1039,1093,1109,1147,1159 'endsess':960 'ensur':810 'equal':1044,1063 'equat':1049 'error':603,1002,1181 'event':117,121,512,654,992,1031,1138,1235,1237 'except':476 'expect':443,492,597,629,745,755,861,1054 'explicit':1035,1103 'extend':383,389,547,555,561 'fail':466,1056 'failur':1163,1185 'fake':390,556,562 'fakeauthev':388,400,560,571 'fakeauthst':554,569 'fakecallev':898 'file':936,1132 'final':317,580,609 'find.bytype':598,756 'find.text':746,751 'find.textcontaining':630 'findsatleastnwidget':758 'findsonewidget':600,632,748 'fire':652,1022 'first':102,142 'flow':45 'flutter':3,10,18,58,95,105,115,125,154,264,267,276,286,349,368,528,532,717,786,807,921,1074,1215,1224,1233,1241,1254,1265,1277 'flutter/material.dart':525,714 'futur':297,299,303,314,330 'get':222 'get.reset':173 'getloggedinus':306 'getx':82,168 'gi':53 'global':234 'golden':46,137,778,811,1272 'ground':147 'handl':503,1096 'handler':1032 'hangup':958 'happen':1115 'hard':111,1229,1246 'haven':145 'home':590,622 'id':209 'ident':795 'impl':333 'implement':311,385,391,551,557,563 'import':362,366,370,373,377,523,526,530,534,537,541,712,715,719,723 'init':198,298,315,341,865,873,888,902,938,1026,1196,1200,1202 'init/login':109,1227 'initiatecal':836,855,878 'insid':205 'instanc':232,1060 'integr':39,273,701,704,710,721,771,1186,1193,1245 'integrationtestwidgetsflutterbinding.ensureinitialized':731 'intern':655 'intro':140,1274 'isa':444,445,493,862,863,1069 'kit':645,797 'late':395 'later':1070 'layer':672 'leak':224,977 'least':1141,1153,1165,1176 'lib/services/cometchat_service.dart':293 'like':675 'listen':208 'listtil':757 'load':574,1171 'login':300,410,465,733,1151,1162,1173,1189 'loginrequest':437,486 'logout':304 'main':394,566,730 'manag':78,167 'materi':802 'materialapp':589,621 'messag':616,752,1003 'messagestream':308 'migrat':1279,1282 'mix':1050 'mock':29,186,384,643,656,669,872,1080 'mockauthbloc':546,582,611,1126 'mockauthbloc.add':910 'mockbloc':548,581,594,610,626,971,1087,1127 'mockbloc.close':987 'mockbloc.state':584,613 'mockcometchatservic':382,396,403,1124 'mockservic':397,402,433,482,851 'mockservice.init':414,448,469 'mockservice.initiatecall':840 'mockservice.login':418,452,473 'mocktail':26,139,256,271,994,1273 'mocktail/mocktail.dart':372,536 'mount':944,1016 'move':1027 'multiblocprovid':178 'must':225,238 'name':428 'navigator.pop':962 'need':1102 'often':1047 'one':1142,1154,1166,1177 'onsuccess':207,343 'order':110,199,866,1197,1228 'overrid':313 'packag':89,188,363,367,371,374,378,524,527,531,535,538,542,713,716,720,724 'pass':1259 'pattern':7,69,128,660,793,966,1270 'per':179,231,243,982 'per-inst':230 'persist':219 'pin':806,1217 'pointer':1221 'predic':494,1065 'primit':79 'product':641,1261 'provid':176,237 'pub.dev':152 'pub.dev/packages/bloc_test':151 'pubspec.yaml':261 'pump':1090 'purpos':54 're':241,980 're-creat':240,979 'read':98,141 'real':43,332,1024,1073 'real-devic':42 'rebuild':1112 'receiveruid':856 'recip':56,1283 'region':322 'registerfallbackvalu':399,568,570,897,990,1133 'relat':879 'reli':699 'replac':688 'reset':226,235,975 'resolv':875,1174 'rest':352 'reus':968 'rewrit':1285 'rule':112,344,867,1198,1230,1247 'run':881,905 'runner':998 's.message.contains':499 'screen':917,943,948 'sdk':28,266,275,766,1025,1123 'second':743 'section':290,790,924 'see':92,283,735,783,918,1190 'separ':192 'sequenc':516 'servic':277,432,481,667,850 'session':846,955 'sessionid':845 'set':318 'setup':259,401,412,467,838 'setupal':398,567,893,895,1136 'shape':280,761 'share':904,1269 'show':573,602,949,1170 'side':1010,1020,1028 'simplest':883 'singl':970 'singleton':223 'skill':101 'skill-cometchat-flutter-v6-testing' 'skip':693,989,1089 'somest':1055,1059 'source-cometchat' 'specif':134 'stabil':812 'stabl':210 'start':956 'state':77,166,218,228,515,577,606,976,993,1046,1092,1097,1139 'state-manag':76 'stay':247 'strategi':682 'stream':122,307,1238 'string':211,301 'subclass':1008 'subscrib':507 'subscript':215 'subscriptiontyp':326 'succeed':411,837 'success':1150 'surfac':665 'teardown':986 'test':5,6,19,21,25,31,40,47,55,127,138,150,161,172,175,180,221,244,258,265,269,274,288,356,359,502,519,636,695,702,705,772,779,788,815,825,870,880,891,914,935,973,983,997,1015,1037,1079,1095,1101,1131,1144,1156,1168,1179,1187,1194,1209,1251,1258,1267,1284 'test/bloc_test.dart':365 'test/blocs/auth_bloc_test.dart':361 'test/chat_test.dart':711 'test/flutter_test.dart':369,529,718 'test/integration_test.dart':722 'tester':578,607,737 'tester.pump':1105 'tester.pumpandsettle':741,754 'tester.pumpwidget':588,620 'tester.tap':750 'testwidget':572,601,732 'theme':49,800 'thenansw':415,420,470,842 'thenreturn':585,614 'thenthrow':475 'topic-agent-skills' 'topic-ai-agent' 'topic-chat' 'topic-claude-code' 'topic-cometchat' 'topic-cursor' 'topic-messaging' 'topic-nextjs' 'topic-react' 'topic-react-native' 'topic-ui-kit' 'touch':827 'troubleshoot':1256 'truth':148 'two':1058 'ui':1182 'uid':302,423,426,438,441,455,487,490,859 'uikit':11,59,88,191,197,824 'uikitset':108 'uikitsettings.builder':319 'uikitsettingsbuild':203 'unauthor':478,500,618,631 'unclear':1005 'under':765 'unifi':85 'unit':24,355 'use':182,801,985,1064,1206 'user':305,422 'v5':68,126,159,164,282,287,687,708,763,782,787,1266,1280 'v6':4,12,60,96,106,116,133,160,165,350,649,799,817,818,922,1225,1234,1242,1255,1278,1281 'v6-specific':132 'valu':331,592,593,624,625,1086 'verif':927,1117 'verifi':446,447,451,1067 'version':808,1216 'via':177,1068,1084,1211 'view':952 'void':393,565,729 'way':884 'webrtc':951 'welcom':747 'widget':30,38,518,648,651,674,694,913,1078,1100,1167,1178 'wire':251,887 'without':974,999 'won':1113 'wrap':336,661,1121 'yaml':260","prices":[{"id":"5f8dc056-9782-4bba-aba1-c4d532969cb0","listingId":"e530b268-aa69-400d-b153-af7337850462","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"cometchat","category":"cometchat-skills","install_from":"skills.sh"},"createdAt":"2026-05-18T07:04:24.817Z"}],"sources":[{"listingId":"e530b268-aa69-400d-b153-af7337850462","source":"github","sourceId":"cometchat/cometchat-skills/cometchat-flutter-v6-testing","sourceUrl":"https://github.com/cometchat/cometchat-skills/tree/main/skills/cometchat-flutter-v6-testing","isPrimary":false,"firstSeenAt":"2026-05-18T07:04:24.817Z","lastSeenAt":"2026-05-18T19:04:52.187Z"}],"details":{"listingId":"e530b268-aa69-400d-b153-af7337850462","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"cometchat","slug":"cometchat-flutter-v6-testing","github":{"repo":"cometchat/cometchat-skills","stars":27,"topics":["agent-skills","ai-agent","chat","claude-code","cometchat","cursor","messaging","nextjs","react","react-native","ui-kit"],"license":null,"html_url":"https://github.com/cometchat/cometchat-skills","pushed_at":"2026-05-18T05:04:24Z","description":"Add CometChat chat to any React, Next.js, React Native, Angular, Android, iOS, or Flutter project through your AI coding agent. Works with Claude Code, Cursor, Codex, VS Code Copilot, Windsurf, Cline, Kiro, and 50+ more agents.","skill_md_sha":"99efd5256a3bf6d4286034075c9d851cfb63fd81","skill_md_path":"skills/cometchat-flutter-v6-testing/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/cometchat/cometchat-skills/tree/main/skills/cometchat-flutter-v6-testing"},"layout":"multi","source":"github","category":"cometchat-skills","frontmatter":{"name":"cometchat-flutter-v6-testing","license":"MIT","description":"Testing patterns for CometChat Flutter UIKit v6 (beta, Bloc-based). Covers flutter_test + bloc_test for Bloc unit tests, mocktail for SDK mocking, widget tests around the Bloc-driven CometChat widgets, integration_test for real-device flows, golden tests for theming, and CI on GitHub Actions / Codemagic. Sister skill of cometchat-flutter-v5-testing — the cohorts have different state-management primitives (GetX vs Bloc) so the patterns differ.","compatibility":"Flutter >= 2.5, Dart >= 3.0; flutter_test (built-in); bloc_test >= 9.0; mocktail >= 1.0; integration_test (built-in); cometchat_chat_uikit ^6.0.0-beta2"},"skills_sh_url":"https://skills.sh/cometchat/cometchat-skills/cometchat-flutter-v6-testing"},"updatedAt":"2026-05-18T19:04:52.187Z"}}