[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F2RHR7H8VVZDP16FJNJV11":3,"skill-same:01M7F2RHR7H8VVZDP16FJNJV11":493},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7F2RHR7H8VVZDP16FJNJV11","unit-and-component-tests",null,"Sets up Jest, checks unit, component and route tests (RNTL 14, renderWithProviders, SDK mocks, fakes, fast-check, Stryker). Use when writing a test or mock, or Jest fails or flakes. Not for goldens (golden-and-snapshot-tests).","zakariaf\u002FReactNative-Skills","zakariaf","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F2259803?v=4","01M7DEF0YMPS6Y6RQ4WGA0JH9R","Zakaria Fatahi","01M7F1VKYEK96M7SYJE1EPGD0A",13,"MIT","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: unit-and-component-tests\ndescription: Sets up Jest, checks unit, component and route tests (RNTL 14, renderWithProviders, SDK mocks, fakes, fast-check, Stryker). Use when writing a test or mock, or Jest fails or flakes. Not for goldens (golden-and-snapshot-tests).\n---\n\n# Unit and component tests\n\nEvery store, service, hook, component, route and pure module of an Expo app is proven in Jest (jest-expo, React Native Testing Library 14, fast-check, Stryker) through one root configuration, with components rendered inside the app's real providers on both iOS and Android presets. This skill builds that set-up, says how each kind of test is written, and its scripts prove the set-up, the test code and the mutation results.\n\n## Rules that must hold\n\n1. **One Jest config at the repo root, run from the root, and every test file runs in exactly one place.** Projects: `unit` (preset `jest-expo\u002Fios`), `android` (`jest-expo\u002Fandroid`, `*.android.test.ts(x)` only) and `golden` (`*.golden.test.ts` only, in every app: data goldens with the unit set-up, and Skia's CanvasKit environment only while the app depends on `@shopify\u002Freact-native-skia`). Long-running simulations run only through `jest.sim.config.js`. Every test is a `\u003Cunit>.test.ts(x)` file in `src\u002F`, `scripts\u002F`, `plugins\u002F` (local config plugins) or `test\u002F` (no `__tests__\u002F\u003Cname>-test.tsx`, no `.spec.ts`), and never inside the routes folder (`src\u002Fapp\u002F`). No second Jest config (a `package.json` `jest` key, a `jest.config.ts`). Why: Expo Router bundles every file in `src\u002Fapp\u002F` as a route, so a test there breaks `expo export` while Jest still passes; jest-expo reads Babel options from the working directory; `.android.tsx` files, `Platform.OS` branches and the hardware back button exist only under the Android preset; a CanvasKit environment without Skia fails every Jest run, and a golden project kept behind Skia silently never ran data goldens, and neither do tests in Expo's guide layout under this config; two configs stop Jest with \"Multiple configurations found\" (all verified).\n2. **Exact test-tool pins and one React.** jest 29.7.0 (Expo's line), jest-expo from `expo\u002FbundledNativeModules.json`, `@react-native\u002Fjest-preset` equal to `react-native`, RNTL 14.0.1 installed in the same command as test-renderer 1.2.0 (its minor equals React's), fast-check 4, the three Stryker packages on one version; `react` and `react-native` exact (when multi-package: root `overrides`); no `react-test-renderer`. Why: npm alone picked test-renderer 1.3.0 (React 19.3), a monorepo without overrides hoisted a second React for the tests, and React 19 deprecates `react-test-renderer`, which jest-expo still installs, so a test importing it keeps passing unnoticed (verified).\n3. **Import through the path aliases**, `@\u002F` to `src\u002F` and `@test\u002F` to `test\u002F`, mirrored in `moduleNameMapper`; when multi-package, another workspace by its package name, mapped to its `src\u002F`. Why: jest-expo derives aliases only from the working directory's `tsconfig.json`, and through workspace symlinks Stryker mutates a copy the tests never run (verified).\n4. **Await every RNTL call** (`render`, `renderHook`, `act`, `waitFor`, `waitForElementToBeRemoved`, `fireEvent`, `findBy*`, `user.*`, the render-helper functions, and `rerender`\u002F`unmount` on what a render returned). Query `getByRole` first, `findBy*` for what appears later, `queryBy*` only to prove absence; press through `userEvent.setup()`. Why: RNTL 14 is async; an un-awaited call runs after the assertions.\n5. **Render every component and hook through the render helper** (`renderWithProviders`, `renderHookWithProviders`, `createProvidersWrapper` from `@test\u002Frender-with-providers`), and every route test through `renderRouterWithProviders` (`@test\u002Frender-router-with-providers`), never Expo Router's `renderRouter`. The helpers build the app's real providers fresh for each render from `test\u002Ftest-app.tsx`: catalogs where a missing message throws, stores seeded through their real factories, only the services the test passes (the others throw and name themselves). They return what the tree holds. A test whose unit reads nothing from context, that supplies the provider under test itself (`\u003CI18nProvider>` around `\u003CT \u002F>`), or that proves a hook's no-provider default keeps plain `render`\u002F`renderHook` with `\u002F\u002F no-providers: \u003Cwhy>` in the file. Assert visible text, roles and accessible names; assert styles only in the design-system folders or under `\u002F\u002F allow-style-assertion: \u003Cwhy>`; no component snapshots. Why: tests see what the app, VoiceOver and TalkBack see, and survive refactors; with RNTL 14, `renderRouter`'s matchers throw and it leaves fake timers on (verified).\n6. **Native SDKs only through root `__mocks__\u002F\u003Csdk>.ts`.** An adapter test pairs `jest.mock('\u003Csdk>')` with a locally typed `jest.requireMock`; no test imports the SDK. Skia is mocked once, in `jest.setup.ts`. Why: these SDKs crash on import in Jest, and `requireMock` without `jest.mock` reads a second instance with zero calls (verified).\n7. **Everything above an adapter is tested through fakes** (`fake-\u003Cport>.ts`: a small real implementation with a shared call log); store state changes only by seeding and through the store's own actions, never by mocking a store module. Why: fakes make service rules millisecond tests and prove cross-service order with one assertion.\n8. **Tests are deterministic.** `TZ=UTC` in every Jest config, an injected `ClockPort` and seeded RNG, `flushMicrotasks()` instead of sleeps, fake timers only for UI timers, no retries, and Android behaviour in `\u003Cunit>.android.test.ts(x)`, never by overwriting `Platform.OS`. Why: a flaky test is a bug; an overwritten `Platform.OS` leaks into later tests and skips `.android` files.\n9. **Pure logic gets examples, fast-check properties and one pinned value**; a counterexample becomes an example test before the fix. Why: properties alone left 3 of 8 mutants of a random-number generator alive; the pinned sequence killed them.\n10. **Tests that need Node APIs live under the root `test\u002F`** (`node:sqlite`, `node:fs`, `Buffer`). Why: the app program has only `jest` types and lint bans `node:*` imports in `src\u002F`.\n11. **Coverage 90\u002F90\u002F90\u002F85 globally and 95\u002F95\u002F95\u002F90 for the logic keys; mutation score at least 75%, measured on mutants a test really ran**, survivors killed by boundary examples. Never lower a threshold, never `istanbul ignore`, never `\u002F\u002F Stryker disable`. Why: one agent writes code and tests; coverage stood at 97.8% while the mutation score was 77.1%, and Stryker passes a run whose every mutant was skipped as static (score NaN, verified); Stryker obeys a `\u002F\u002F Stryker disable` comment and reports those mutants as Ignored, outside the score, so quality-gates' bypass check fails both comments.\n12. **Every source file ships with a test or starts with `\u002F\u002F device-only: covered by \u003Ccheck>`** in its first 6 lines, and only native adapters, Skia and frame-callback modules, composition files and tooling entry points may carry it. `jest.config.js` leaves exactly the marked files out of coverage through the tested helper `scripts\u002Fquality\u002Fdevice-only.ts`; fakes and pure helpers always get tests. A route file in `src\u002Fapp\u002F` meets this through the route test that renders its default export from `src\u002Ffeatures\u002F` (never a test beside it) or the marker naming the flow that opens it. Why: untested composition files held a real app at 83.8% statements, and a hand-written exclusion hides real code.\n\n## Workflow\n\n1. **Check the set-up** from the repo root: `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-test-setup.mjs .`. For each missing piece copy the template of the same path from `templates\u002F` (root configs, `scripts\u002Fquality\u002F`, `__mocks__\u002F`; `babel.config.js` as it is: its Stryker override compiles only the files Stryker instrumented without the Worklets and Reanimated plugins, see step 8), and merge `assets\u002Fpackage.test-deps.json` into `package.json` (scripts and exact devDependency pins). If the app followed Expo's unit-testing guide, delete its `\"jest\": { \"preset\": \"jest-expo\" }` key from `package.json` and its `\"test\": \"jest --watchAll\"` script: `jest.config.js` is the one config. The guide also puts tests in `__tests__\u002F\u003Cname>-test.tsx`, which no project runs: move each next to its unit as `\u003Cunit>.test.tsx` and remove `react-test-renderer`, as the guide itself says (`jest-orphan-tests` and `test-dep-deprecated` name each one). Install the Testing Library with its companion in one command: `npm install -D --save-exact @testing-library\u002Freact-native@14.0.1 test-renderer@1.2.0`. `tsconfig.stryker.json` extends `tsconfig.base.json` from typescript-and-lint-rules' tsconfig set: adopt that set first, or point its `extends` at `.\u002Ftsconfig.json` (`stryker-tsconfig` names it). Tests another runner owns (Playwright for the web build, Cypress, Deno under `supabase\u002Ffunctions\u002F`) that the checker cannot detect go into `contracts\u002Ftest-setup.json` `otherRunnerGlobs`. Read [references\u002Fjest-config.md](references\u002Fjest-config.md) before changing any config; the configs and the device-only helper are gated files (quality-gates).\n2. **Wire the render helpers once.** Copy `templates\u002Ftest\u002F`: `render-with-providers.tsx` with its test, `test-app.tsx`, `flush-microtasks.ts`, `play-actions.ts` with its test, `render-router-with-providers.tsx` with its test when the app uses Expo Router (an app on React Navigation has no `expo-router\u002Ftesting-library`; it follows the appendix of [references\u002Fcomponent-tests.md](references\u002Fcomponent-tests.md) instead), and `skia-mock.test.tsx` when the app depends on Skia. `test-app.tsx` already wraps `ServicesProvider` over `createTestServices(options.services)`, the composition root of architecture-and-boundaries, and takes the `language` and `direction` options (text locale, layout direction); each file it imports that the app lacks comes from `templates\u002Fsrc\u002F` (synced copies; never over an existing file such as the app's `languages.ts`). Then grow `test\u002Ftest-app.tsx` with the app's providers, in the order the root layout uses them, as each lands: catalogs, store factories with a seed, theme. [examples\u002Ftest-app.tsx](examples\u002Ftest-app.tsx) shows a Tasks app fully wired.\n3. **Pick the kind of test** and read its reference once per session:\n   - component, screen or hook: [references\u002Fcomponent-tests.md](references\u002Fcomponent-tests.md); models `templates\u002Ftest\u002Frender-with-providers.test.tsx` and [examples\u002Fuse-tasks-model.test.tsx](examples\u002Fuse-tasks-model.test.tsx);\n   - navigation (a link, a deep link, a redirect, back): the same reference, section \"Routes and navigation\"; model `templates\u002Ftest\u002Frender-router-with-providers.test.tsx`;\n   - Android-only behaviour (an `.android.tsx` file, the hardware back button, a `Platform.select` branch): the same reference, section \"Android behaviour\"; model [examples\u002Ftask-editor.android.test.tsx](examples\u002Ftask-editor.android.test.tsx);\n   - adapter over a native SDK, fake, service or policy: [references\u002Fmocks-and-fakes.md](references\u002Fmocks-and-fakes.md); models [examples\u002Fexpo-iap-purchase-adapter.test.ts](examples\u002Fexpo-iap-purchase-adapter.test.ts), [examples\u002Ffake-purchase.ts](examples\u002Ffake-purchase.ts), [examples\u002Fpremium-service.test.ts](examples\u002Fpremium-service.test.ts);\n   - reducer, policy or other pure logic: [references\u002Fproperties.md](references\u002Fproperties.md); model [examples\u002Ftask-list-reducer.test.ts](examples\u002Ftask-list-reducer.test.ts).\n4. **Place and name the test**: next to its unit as `\u003Cunit>.test.ts(x)` (`\u003Cunit>.android.test.tsx` for Android-only behaviour, `test\u002Fintegration\u002F\u003Carea>\u002F` when it needs Node), never inside `src\u002Fapp\u002F`: a route test goes to `src\u002Ffeatures\u002F\u003Cfeature>\u002F\u003Cfeature>-navigation.test.tsx`. Titles read as the spec and pass lint (`jest\u002Fvalid-title` `^(can|[a-z]+s)\\b`): `describe('\u003Cexported name>')`, optional `describe('when …')`, then `it('clears …')`, never `it('should …')`; no `it.skip`, `it.only`, `xit`.\n5. **Run the one file and read the failure**: `npx jest \u003Cfile> --ci --selectProjects unit` (`--selectProjects android` for an Android test; paths always before the flag). Red must be an assertion diff, not an import or type error.\n6. **Make it green, then check the test code**: `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-test-code.mjs .`. Fix each `FAIL` line (file, rule and fix are printed) and rerun until `RESULT: PASS`. A unit that really reads nothing from context (or a test of the provider itself or of a no-provider default), a timer helper, or a style that is the contract gets the reasoned marker the fix names (`no-providers`, `allow-fake-timers`, `allow-style-assertion`), not a rewrite; `--help` lists them.\n7. **Run the whole suite with coverage**: `npm run test:coverage`. Below a threshold, add tests for the uncovered behaviour ([references\u002Fcoverage-and-mutation.md](references\u002Fcoverage-and-mutation.md)); a native adapter, Skia or frame-callback module, composition file or tooling entry point gets the device-only marker instead, naming the check that covers it. For a subset, put the paths first and switch the thresholds off: `npx jest \u003Cpaths> --ci --selectProjects unit --coverage --collectCoverageFrom='\u003Cpath>\u002F**\u002F*.ts' --coverageThreshold='{}'`.\n8. **Mutation-test finished logic** (a reducer, policy, repository or `src\u002Fcore` module): `npx stryker run --mutate \u003Cfile>`, then `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-mutation-report.mjs . --changed \u003Cfile>`. If Stryker stops with \"There were failed tests in the initial test run\" and the Reanimated error \"`useAnimatedStyle` was used without a dependency array or Babel plugin\" while `npx jest` passes, `babel.config.js` is an old form that compiles every file without the Worklets plugin: copy `templates\u002Fbabel.config.js`, whose override applies only to the files Stryker instrumented ([references\u002Fjest-config.md](references\u002Fjest-config.md), section babel.config.js). Kill each survivor with a boundary example and rerun both; an equivalent mutant is accepted only with `--allow \u003Cid>` and a sentence in the change report. Nightly and before a release: `npm run test:mutation`, then the same check without `--changed` (it also fails any file none of whose mutants was tested).\n9. **Rerun the three checks** until each prints `RESULT: PASS`.\n\n## Definition of done\n\n- [ ] `npx jest --ci` passes with no `act(...)` warnings, and `npm ls react react-native` shows one version of each.\n- [ ] Every new test sits next to its unit (an Android-only case in `\u003Cunit>.android.test.tsx`, a Node-API test under `test\u002F`, a route test in `src\u002Ffeatures\u002F`, none inside `src\u002Fapp\u002F`) and was seen failing on an assertion first.\n- [ ] Components and hooks render through the render helper, routes through the router helper; adapters are tested against the root mocks; services over fakes.\n- [ ] `npm run test:coverage` passes (90\u002F90\u002F90\u002F85 global, 95\u002F95\u002F95\u002F90 logic keys).\n- [ ] Finished logic modules: `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-mutation-report.mjs . --changed \u003Cfile>` prints `RESULT: PASS` (score at least 75%, no survivor in the file, its mutants actually tested).\n- [ ] `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-test-setup.mjs .` prints `RESULT: PASS` (it prints no SKIP line; `NOT APPLICABLE` only in a repo without `expo`).\n- [ ] `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-test-code.mjs .` prints `RESULT: PASS`\n\n## Anti-patterns\n\n- **`render(\u003CX \u002F>)` without the providers, or without `await`.** The component misses its catalog, stores and services, and the assertions run before React commits. Use `await renderWithProviders(\u003CX \u002F>, options)`.\n- **Mocking a store or one of the app's own modules to \"make the test easy\".** The test then proves the mock. Seed through the render helper's options and call the actions of the returned `stores`.\n- **A bag of `jest.fn()` standing in for a port.** It cannot prove order or state. Write or reuse `fake-\u003Cport>.ts` with a call log.\n- **`import { fetchProducts } from 'expo-iap'` in a test.** It crashes or reads a second instance. `jest.mock('expo-iap')` plus a typed `jest.requireMock`.\n- **`await new Promise((r) => setTimeout(r, 50))`.** Slow and flaky. `findBy*` for the screen, `flushMicrotasks()` for services.\n- **`Platform.OS = 'android'` in an iOS-project test.** It leaks into the next test, and `.android.tsx` files still resolve to iOS. Write `\u003Cunit>.android.test.tsx`.\n- **`renderRouter(...)` with `expect(screen).toHavePathname(...)`**, as Expo's SDK 57 testing guide shows it. `renderRouter` returns RNTL's render promise with the route getters attached to the promise, so the awaited result has none; with RNTL 14 its matchers and `testRouter` throw (`getPathname is not a function`), and it leaves fake timers on for the rest of the file (verified with expo-router 57.0.24). `await renderRouterWithProviders(routes)`, then `expect(view.getPathname())`.\n- **Tests in `__tests__\u002F\u003Cname>-test.tsx` or `*.spec.ts`**, as Expo's guide and Jest's defaults allow. No project runs them, so they pass by never running. Name every test `\u003Cunit>.test.ts(x)` beside its unit.\n- **`expect(view.toJSON()).toMatchSnapshot()` for a component.** It fails on every harmless change and proves nothing a user sees. Assert roles, names and state; readable data snapshots belong in a golden test.\n- **`queryByText(...)` with `toBeOnTheScreen()`, or `getByText(...)` with `.not.toBeOnTheScreen()`.** The first hides a missing element's error message, the second throws before asserting.\n- **`const TASKS = sortTasks([...])` above the `describe`.** The unit runs at import, Stryker marks every mutant of it static and skips it, and reports a score of NaN as a pass (verified). Call the unit inside `it()`; module-level fixtures are plain data.\n- **Weakening a gate to get green**: lower coverage numbers, a break under 75, `istanbul ignore`, `Stryker disable`, `jest.retryTimes`. This skill's checkers fail the numbers and the retries; quality-gates' bypass check fails both comments. Fix the test or the code; if a gate looks wrong, stop and ask the developer.\n\n## Files in this skill\n\n| File | What it is | Read\u002Frun when |\n|---|---|---|\n| [references\u002Fjest-config.md](references\u002Fjest-config.md) | Versions and re-verify commands, file layout, Babel, `jest.config.js` part by part, `jest.setup.ts`, the simulation config, scripts, the contract, when multi-package, known failures, flaky tests | Workflow step 1, and whenever a config or pin changes or Jest fails oddly |\n| [references\u002Fcomponent-tests.md](references\u002Fcomponent-tests.md) | RNTL 14 async model, the render helper and `test\u002Ftest-app.tsx`, queries, matchers, user-event, hooks, stores, gestures, Skia, Android behaviour, styles, what not to test | Workflow steps 2 and 3 for components, screens and hooks |\n| [references\u002Fmocks-and-fakes.md](references\u002Fmocks-and-fakes.md) | Root native-SDK mocks and why each exists, adapter tests with `requireMock`, fakes with call logs, services and policies over fakes | Workflow step 3 for adapters, services, policies |\n| [references\u002Fproperties.md](references\u002Fproperties.md) | Examples + fast-check properties + pinned values, `playActions`, the property checklist, counterexamples, simulations, `node:sqlite` placement | Workflow step 3 for pure logic |\n| [references\u002Fcoverage-and-mutation.md](references\u002Fcoverage-and-mutation.md) | Thresholds and key semantics, the device-only marker, subsets, Stryker config, reading survivors, a worked boundary example, equivalent mutants | Workflow steps 7 and 8 |\n| `templates\u002Fjest.config.js` | The one Jest config: unit, android and golden projects (CanvasKit with Skia), aliases, UTC, transforms, coverage gates (synced from the library; do not edit here) | Copy to the repo root (step 1) |\n| `templates\u002Fjest.setup.ts` | Gesture Handler, Worklets and Reanimated setup and the one guarded Skia mock, for unit, android and (without Skia) golden (synced; do not edit here) | Copy to the repo root (step 1) |\n| `templates\u002Fjest.sim.config.js` | Plain-Node config for `*.sim.test.ts` simulations (synced; do not edit here) | Copy only when the app has simulations (game-balance-and-bots) |\n| `templates\u002Fbabel.config.js` | Root Babel config whose Stryker override compiles only the instrumented files without the Worklets and Reanimated plugins (synced; do not edit here) | Copy to the repo root (step 1); replaces an old all-files branch (step 8) |\n| `templates\u002Fstryker.config.json` | Stryker scope, thresholds, ignore list, type-check scope, reporters (synced; do not edit here) | Copy to the repo root (step 1) |\n| `templates\u002Ftsconfig.stryker.json` | The jest-only program Stryker's type checker uses (synced; do not edit here) | Copy to the repo root (step 1) |\n| `templates\u002Fscripts\u002Fpackage.json` | Marks `scripts\u002F` as ES modules so Node loads the helper (synced; do not edit here) | Copy with the helper (step 1) |\n| `templates\u002Fscripts\u002Fquality\u002Fdevice-only.ts` | The one helper that turns `\u002F\u002F device-only: covered by ...` markers into coverage exclusions (synced; do not edit here) | Copy with `jest.config.js` (step 1) |\n| `templates\u002Fscripts\u002Fquality\u002Fdevice-only.test.ts` | The helper's test (synced; do not edit here) | Copy with the helper |\n| `templates\u002Ftest\u002Frender-with-providers.tsx` | `renderWithProviders`, `renderHookWithProviders`, `createProvidersWrapper` (synced; do not edit here) | Copy once (step 2) |\n| `templates\u002Ftest\u002Frender-with-providers.test.tsx` | The helper's own test and the model of every component and hook pattern (synced; do not edit here) | Copy with the helper; read before the first component test |\n| `templates\u002Ftest\u002Frender-router-with-providers.tsx` | `renderRouterWithProviders`: Expo Router's in-memory router inside the same providers, with route getters (synced; do not edit here) | Copy once when the app uses Expo Router (step 2) |\n| `templates\u002Ftest\u002Frender-router-with-providers.test.tsx` | Its test and the model of a route test: link press, deep link, navigation from outside React (synced; do not edit here) | Copy with the helper; read before the first route test |\n| `templates\u002Ftest\u002Ftest-app.tsx` | The app's provider tree for tests: `ServicesProvider` over `createTestServices`, the `language` and `direction` options (react-intl that throws on a missing message, the text locale, the layout direction), a fresh TanStack Query cache (synced; do not edit here) | Copy once, then grow it in the app (step 2) |\n| `templates\u002Fsrc\u002F` | What `test-app.tsx` imports, synced from their owners (do not edit here): the composition root's test side (`services-context.tsx`, `create-test-services.ts`, the clock, error-log and direction-guard ports, `fake-clock.ts`, `core\u002Fdates\u002Fdate-key.ts`, `core\u002Fresult.ts`), `i18n\u002F{languages,digits,language-context,direction-context}` and `theme\u002Ftext-locale.tsx` | Step 2, each file only when the app has none at that path (never over the app's `languages.ts`) |\n| `templates\u002Ftest\u002Fflush-microtasks.ts` | Lets queued promise callbacks run without fake timers (synced; do not edit here) | Copy with the helper |\n| `templates\u002Ftest\u002Fplay-actions.ts` | Turns fast-check integers into legal action sequences for any pure model (synced; do not edit here) | Copy before the first property test of a reducer or policy |\n| `templates\u002Ftest\u002Fplay-actions.test.ts` | Its test, a compact property-test model (synced; do not edit here) | Copy with `play-actions.ts` |\n| `templates\u002Ftest\u002Fskia-mock.test.tsx` | Proves the central Skia mock (synced; do not edit here) | Copy when the app depends on Skia |\n| `templates\u002F__mocks__\u002F` | Root manual mocks: `expo-iap`, `expo-tracking-transparency`, `react-native-audio-api`, `react-native-google-mobile-ads`, `react-native-keyboard-controller` (synced; do not edit here) | Copy the mock of each SDK the app depends on |\n| `templates\u002Fcontracts\u002Ftest-setup.json` | The optional contract with the app's facts (render and router helpers, root mocks, logic folders), filled with the defaults | Copy when the app's logic or helper lives elsewhere |\n| `templates\u002Fcontracts\u002Ftest-setup.schema.json` | JSON Schema of the contract | With the contract |\n| [examples\u002Ftest-app.tsx](examples\u002Ftest-app.tsx) | `test\u002Ftest-app.tsx` fully wired for a Tasks app: services, seeded stores, catalogs, theme, query cache | Workflow step 2 |\n| [examples\u002Fuse-tasks-model.test.tsx](examples\u002Fuse-tasks-model.test.tsx) | A hook test: seeded through the helper, changed by a store action | To imitate for hooks |\n| [examples\u002Ftask-editor.android.test.tsx](examples\u002Ftask-editor.android.test.tsx) | An Android-only test: the hardware back button under `jest-expo\u002Fandroid`, on a screen and on the router stack | To imitate for Android behaviour |\n| [examples\u002Fexpo-iap-purchase-adapter.test.ts](examples\u002Fexpo-iap-purchase-adapter.test.ts) | An adapter test against a root mock with a typed `requireMock` | To imitate for adapters |\n| [examples\u002Ffake-purchase.ts](examples\u002Ffake-purchase.ts) | A fake port: a mutable script, a shared call log, emitted events | To imitate for fakes |\n| [examples\u002Fpremium-service.test.ts](examples\u002Fpremium-service.test.ts) | A service test over fakes: \"save, then finish the transaction\", and its failure paths (a refused save, a failed restore sync, the launch re-check, an unfinished purchase) | To imitate for services |\n| [examples\u002Ftask-list-reducer.test.ts](examples\u002Ftask-list-reducer.test.ts) | Pure logic: examples, invalid input, determinism, invariants over any action sequence, round trip, pinned value | To imitate for reducers and policies |\n| `assets\u002Fpackage.test-deps.json` | Test scripts, exact devDependency pins, and the React overrides for a multi-package repo | Workflow step 1 |\n| `assets\u002Fshared.json` | Declares the shared files this skill copies in | When adding a shared file |\n| `scripts\u002Fcheck-test-setup.mjs` | Checks pins and companions, one React and no `react-test-renderer`, scripts, Babel, one Jest config, the Jest projects and that every file Jest or Expo would take for a test runs in exactly one (other runners' folders left out), no test in the routes folder, aliases, transforms, coverage scope and the device-only exclusions, setup, simulations, Stryker and its tsconfig, root mocks, the render helper | Workflow step 1 and the definition of done |\n| `scripts\u002Fcheck-test-code.mjs` | Checks every test file of the repo (`__tests__\u002F` and `*.spec` ones too): awaits, the render helpers, queries, styles, snapshots, `react-test-renderer`, SDK imports, `requireMock`, store mocks, timers, sleeps, retries, `Platform.OS`, Expo Router's test API, imports across roots | Workflow step 6 and the definition of done |\n| `scripts\u002Fcheck-mutation-report.mjs` | Reads `reports\u002Fstryker\u002Fmutation.json`: score against the break threshold, survivors in `--changed` files, any file (or the whole report) with no tested mutant (a types-only file, or one whose every mutant failed to compile, needs none) | Workflow step 8 |\n| `scripts\u002Flib\u002Ftest-contract.mjs` | Shared by the two repo checkers: the contract, its defaults, manifests, the known root-mock SDKs, the helper names, the files Jest or Expo would take for tests, and the folders other runners own | Read when changing a checker |\n| `scripts\u002Flib\u002Fconfig-lines.mjs` | Finds the line of a key in `package.json`, `stryker.config.json` and `jest.config.js` (per Jest project) for check-test-setup's problem lines | Read when changing check-test-setup |\n| `scripts\u002Flib\u002Fsource-scan.mjs` | Shared lexer; check-test-code uses its `maskCode` to walk call chains without being misled by strings (synced; do not edit here) | Never by hand |\n| `scripts\u002Fselftest.mjs` | Proves the three checkers pass their good fixtures and catch every planted bug | After changing a checker |\n| `scripts\u002Fcheck-lib.mjs` | Shared script helper (synced; do not edit here) | Never by hand |\n| `tests\u002Fbases\u002F` | Base trees the fixtures start from: a single Expo app, and a layer that turns it into a monorepo | When adding a fixture |\n| `tests\u002Ffixtures\u002F` | Good, pass, bad and error cases for each checker (overlay format) | When adding a rule to a checker |\n\n## Related skills\n\n- `typescript-and-lint-rules` - the tsconfig set (`tsconfig.base.json`) that `tsconfig.stryker.json` extends, and the lint rules tests obey.\n- `tdd-workflow` - the red-green loop, test names and the order of layers.\n- `golden-and-snapshot-tests` - data and pixel goldens, the golden project's matcher and when `jest -u` is allowed.\n- `e2e-maestro` - what flows prove on simulators and emulators instead of Jest; the device-only reason names a flow.\n- `quality-gates` - `check:fast`, `verify` and the guardrail around these configs.\n- `architecture-and-boundaries` - ports, adapters, `ServicesProvider` and `createTestServices`.\n- `state-management-zustand` - the store factories the test app seeds.\n- `persistence-and-migrations` - the `node:sqlite` driver and migration tests under `test\u002F`.\n- `i18n-strings-and-catalogs` - the catalogs the test app loads and the bidi isolates in accessible names.\n- `seeded-determinism-and-golden-vectors` - pinned sequences and independent oracles.\n- `skia-canvas-rendering` - draw-call tests and the frame clock.\n","# Unit and component tests\n\nEvery store, service, hook, component, route and pure module of an Expo app is proven in Jest (jest-expo, React Native Testing Library 14, fast-check, Stryker) through one root configuration, with components rendered inside the app's real providers on both iOS and Android presets. This skill builds that set-up, says how each kind of test is written, and its scripts prove the set-up, the test code and the mutation results.\n\n## Rules that must hold\n\n1. **One Jest config at the repo root, run from the root, and every test file runs in exactly one place.** Projects: `unit` (preset `jest-expo\u002Fios`), `android` (`jest-expo\u002Fandroid`, `*.android.test.ts(x)` only) and `golden` (`*.golden.test.ts` only, in every app: data goldens with the unit set-up, and Skia's CanvasKit environment only while the app depends on `@shopify\u002Freact-native-skia`). Long-running simulations run only through `jest.sim.config.js`. Every test is a `\u003Cunit>.test.ts(x)` file in `src\u002F`, `scripts\u002F`, `plugins\u002F` (local config plugins) or `test\u002F` (no `__tests__\u002F\u003Cname>-test.tsx`, no `.spec.ts`), and never inside the routes folder (`src\u002Fapp\u002F`). No second Jest config (a `package.json` `jest` key, a `jest.config.ts`). Why: Expo Router bundles every file in `src\u002Fapp\u002F` as a route, so a test there breaks `expo export` while Jest still passes; jest-expo reads Babel options from the working directory; `.android.tsx` files, `Platform.OS` branches and the hardware back button exist only under the Android preset; a CanvasKit environment without Skia fails every Jest run, and a golden project kept behind Skia silently never ran data goldens, and neither do tests in Expo's guide layout under this config; two configs stop Jest with \"Multiple configurations found\" (all verified).\n2. **Exact test-tool pins and one React.** jest 29.7.0 (Expo's line), jest-expo from `expo\u002FbundledNativeModules.json`, `@react-native\u002Fjest-preset` equal to `react-native`, RNTL 14.0.1 installed in the same command as test-renderer 1.2.0 (its minor equals React's), fast-check 4, the three Stryker packages on one version; `react` and `react-native` exact (when multi-package: root `overrides`); no `react-test-renderer`. Why: npm alone picked test-renderer 1.3.0 (React 19.3), a monorepo without overrides hoisted a second React for the tests, and React 19 deprecates `react-test-renderer`, which jest-expo still installs, so a test importing it keeps passing unnoticed (verified).\n3. **Import through the path aliases**, `@\u002F` to `src\u002F` and `@test\u002F` to `test\u002F`, mirrored in `moduleNameMapper`; when multi-package, another workspace by its package name, mapped to its `src\u002F`. Why: jest-expo derives aliases only from the working directory's `tsconfig.json`, and through workspace symlinks Stryker mutates a copy the tests never run (verified).\n4. **Await every RNTL call** (`render`, `renderHook`, `act`, `waitFor`, `waitForElementToBeRemoved`, `fireEvent`, `findBy*`, `user.*`, the render-helper functions, and `rerender`\u002F`unmount` on what a render returned). Query `getByRole` first, `findBy*` for what appears later, `queryBy*` only to prove absence; press through `userEvent.setup()`. Why: RNTL 14 is async; an un-awaited call runs after the assertions.\n5. **Render every component and hook through the render helper** (`renderWithProviders`, `renderHookWithProviders`, `createProvidersWrapper` from `@test\u002Frender-with-providers`), and every route test through `renderRouterWithProviders` (`@test\u002Frender-router-with-providers`), never Expo Router's `renderRouter`. The helpers build the app's real providers fresh for each render from `test\u002Ftest-app.tsx`: catalogs where a missing message throws, stores seeded through their real factories, only the services the test passes (the others throw and name themselves). They return what the tree holds. A test whose unit reads nothing from context, that supplies the provider under test itself (`\u003CI18nProvider>` around `\u003CT \u002F>`), or that proves a hook's no-provider default keeps plain `render`\u002F`renderHook` with `\u002F\u002F no-providers: \u003Cwhy>` in the file. Assert visible text, roles and accessible names; assert styles only in the design-system folders or under `\u002F\u002F allow-style-assertion: \u003Cwhy>`; no component snapshots. Why: tests see what the app, VoiceOver and TalkBack see, and survive refactors; with RNTL 14, `renderRouter`'s matchers throw and it leaves fake timers on (verified).\n6. **Native SDKs only through root `__mocks__\u002F\u003Csdk>.ts`.** An adapter test pairs `jest.mock('\u003Csdk>')` with a locally typed `jest.requireMock`; no test imports the SDK. Skia is mocked once, in `jest.setup.ts`. Why: these SDKs crash on import in Jest, and `requireMock` without `jest.mock` reads a second instance with zero calls (verified).\n7. **Everything above an adapter is tested through fakes** (`fake-\u003Cport>.ts`: a small real implementation with a shared call log); store state changes only by seeding and through the store's own actions, never by mocking a store module. Why: fakes make service rules millisecond tests and prove cross-service order with one assertion.\n8. **Tests are deterministic.** `TZ=UTC` in every Jest config, an injected `ClockPort` and seeded RNG, `flushMicrotasks()` instead of sleeps, fake timers only for UI timers, no retries, and Android behaviour in `\u003Cunit>.android.test.ts(x)`, never by overwriting `Platform.OS`. Why: a flaky test is a bug; an overwritten `Platform.OS` leaks into later tests and skips `.android` files.\n9. **Pure logic gets examples, fast-check properties and one pinned value**; a counterexample becomes an example test before the fix. Why: properties alone left 3 of 8 mutants of a random-number generator alive; the pinned sequence killed them.\n10. **Tests that need Node APIs live under the root `test\u002F`** (`node:sqlite`, `node:fs`, `Buffer`). Why: the app program has only `jest` types and lint bans `node:*` imports in `src\u002F`.\n11. **Coverage 90\u002F90\u002F90\u002F85 globally and 95\u002F95\u002F95\u002F90 for the logic keys; mutation score at least 75%, measured on mutants a test really ran**, survivors killed by boundary examples. Never lower a threshold, never `istanbul ignore`, never `\u002F\u002F Stryker disable`. Why: one agent writes code and tests; coverage stood at 97.8% while the mutation score was 77.1%, and Stryker passes a run whose every mutant was skipped as static (score NaN, verified); Stryker obeys a `\u002F\u002F Stryker disable` comment and reports those mutants as Ignored, outside the score, so quality-gates' bypass check fails both comments.\n12. **Every source file ships with a test or starts with `\u002F\u002F device-only: covered by \u003Ccheck>`** in its first 6 lines, and only native adapters, Skia and frame-callback modules, composition files and tooling entry points may carry it. `jest.config.js` leaves exactly the marked files out of coverage through the tested helper `scripts\u002Fquality\u002Fdevice-only.ts`; fakes and pure helpers always get tests. A route file in `src\u002Fapp\u002F` meets this through the route test that renders its default export from `src\u002Ffeatures\u002F` (never a test beside it) or the marker naming the flow that opens it. Why: untested composition files held a real app at 83.8% statements, and a hand-written exclusion hides real code.\n\n## Workflow\n\n1. **Check the set-up** from the repo root: `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-test-setup.mjs .`. For each missing piece copy the template of the same path from `templates\u002F` (root configs, `scripts\u002Fquality\u002F`, `__mocks__\u002F`; `babel.config.js` as it is: its Stryker override compiles only the files Stryker instrumented without the Worklets and Reanimated plugins, see step 8), and merge `assets\u002Fpackage.test-deps.json` into `package.json` (scripts and exact devDependency pins). If the app followed Expo's unit-testing guide, delete its `\"jest\": { \"preset\": \"jest-expo\" }` key from `package.json` and its `\"test\": \"jest --watchAll\"` script: `jest.config.js` is the one config. The guide also puts tests in `__tests__\u002F\u003Cname>-test.tsx`, which no project runs: move each next to its unit as `\u003Cunit>.test.tsx` and remove `react-test-renderer`, as the guide itself says (`jest-orphan-tests` and `test-dep-deprecated` name each one). Install the Testing Library with its companion in one command: `npm install -D --save-exact @testing-library\u002Freact-native@14.0.1 test-renderer@1.2.0`. `tsconfig.stryker.json` extends `tsconfig.base.json` from typescript-and-lint-rules' tsconfig set: adopt that set first, or point its `extends` at `.\u002Ftsconfig.json` (`stryker-tsconfig` names it). Tests another runner owns (Playwright for the web build, Cypress, Deno under `supabase\u002Ffunctions\u002F`) that the checker cannot detect go into `contracts\u002Ftest-setup.json` `otherRunnerGlobs`. Read [references\u002Fjest-config.md](references\u002Fjest-config.md) before changing any config; the configs and the device-only helper are gated files (quality-gates).\n2. **Wire the render helpers once.** Copy `templates\u002Ftest\u002F`: `render-with-providers.tsx` with its test, `test-app.tsx`, `flush-microtasks.ts`, `play-actions.ts` with its test, `render-router-with-providers.tsx` with its test when the app uses Expo Router (an app on React Navigation has no `expo-router\u002Ftesting-library`; it follows the appendix of [references\u002Fcomponent-tests.md](references\u002Fcomponent-tests.md) instead), and `skia-mock.test.tsx` when the app depends on Skia. `test-app.tsx` already wraps `ServicesProvider` over `createTestServices(options.services)`, the composition root of architecture-and-boundaries, and takes the `language` and `direction` options (text locale, layout direction); each file it imports that the app lacks comes from `templates\u002Fsrc\u002F` (synced copies; never over an existing file such as the app's `languages.ts`). Then grow `test\u002Ftest-app.tsx` with the app's providers, in the order the root layout uses them, as each lands: catalogs, store factories with a seed, theme. [examples\u002Ftest-app.tsx](examples\u002Ftest-app.tsx) shows a Tasks app fully wired.\n3. **Pick the kind of test** and read its reference once per session:\n   - component, screen or hook: [references\u002Fcomponent-tests.md](references\u002Fcomponent-tests.md); models `templates\u002Ftest\u002Frender-with-providers.test.tsx` and [examples\u002Fuse-tasks-model.test.tsx](examples\u002Fuse-tasks-model.test.tsx);\n   - navigation (a link, a deep link, a redirect, back): the same reference, section \"Routes and navigation\"; model `templates\u002Ftest\u002Frender-router-with-providers.test.tsx`;\n   - Android-only behaviour (an `.android.tsx` file, the hardware back button, a `Platform.select` branch): the same reference, section \"Android behaviour\"; model [examples\u002Ftask-editor.android.test.tsx](examples\u002Ftask-editor.android.test.tsx);\n   - adapter over a native SDK, fake, service or policy: [references\u002Fmocks-and-fakes.md](references\u002Fmocks-and-fakes.md); models [examples\u002Fexpo-iap-purchase-adapter.test.ts](examples\u002Fexpo-iap-purchase-adapter.test.ts), [examples\u002Ffake-purchase.ts](examples\u002Ffake-purchase.ts), [examples\u002Fpremium-service.test.ts](examples\u002Fpremium-service.test.ts);\n   - reducer, policy or other pure logic: [references\u002Fproperties.md](references\u002Fproperties.md); model [examples\u002Ftask-list-reducer.test.ts](examples\u002Ftask-list-reducer.test.ts).\n4. **Place and name the test**: next to its unit as `\u003Cunit>.test.ts(x)` (`\u003Cunit>.android.test.tsx` for Android-only behaviour, `test\u002Fintegration\u002F\u003Carea>\u002F` when it needs Node), never inside `src\u002Fapp\u002F`: a route test goes to `src\u002Ffeatures\u002F\u003Cfeature>\u002F\u003Cfeature>-navigation.test.tsx`. Titles read as the spec and pass lint (`jest\u002Fvalid-title` `^(can|[a-z]+s)\\b`): `describe('\u003Cexported name>')`, optional `describe('when …')`, then `it('clears …')`, never `it('should …')`; no `it.skip`, `it.only`, `xit`.\n5. **Run the one file and read the failure**: `npx jest \u003Cfile> --ci --selectProjects unit` (`--selectProjects android` for an Android test; paths always before the flag). Red must be an assertion diff, not an import or type error.\n6. **Make it green, then check the test code**: `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-test-code.mjs .`. Fix each `FAIL` line (file, rule and fix are printed) and rerun until `RESULT: PASS`. A unit that really reads nothing from context (or a test of the provider itself or of a no-provider default), a timer helper, or a style that is the contract gets the reasoned marker the fix names (`no-providers`, `allow-fake-timers`, `allow-style-assertion`), not a rewrite; `--help` lists them.\n7. **Run the whole suite with coverage**: `npm run test:coverage`. Below a threshold, add tests for the uncovered behaviour ([references\u002Fcoverage-and-mutation.md](references\u002Fcoverage-and-mutation.md)); a native adapter, Skia or frame-callback module, composition file or tooling entry point gets the device-only marker instead, naming the check that covers it. For a subset, put the paths first and switch the thresholds off: `npx jest \u003Cpaths> --ci --selectProjects unit --coverage --collectCoverageFrom='\u003Cpath>\u002F**\u002F*.ts' --coverageThreshold='{}'`.\n8. **Mutation-test finished logic** (a reducer, policy, repository or `src\u002Fcore` module): `npx stryker run --mutate \u003Cfile>`, then `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-mutation-report.mjs . --changed \u003Cfile>`. If Stryker stops with \"There were failed tests in the initial test run\" and the Reanimated error \"`useAnimatedStyle` was used without a dependency array or Babel plugin\" while `npx jest` passes, `babel.config.js` is an old form that compiles every file without the Worklets plugin: copy `templates\u002Fbabel.config.js`, whose override applies only to the files Stryker instrumented ([references\u002Fjest-config.md](references\u002Fjest-config.md), section babel.config.js). Kill each survivor with a boundary example and rerun both; an equivalent mutant is accepted only with `--allow \u003Cid>` and a sentence in the change report. Nightly and before a release: `npm run test:mutation`, then the same check without `--changed` (it also fails any file none of whose mutants was tested).\n9. **Rerun the three checks** until each prints `RESULT: PASS`.\n\n## Definition of done\n\n- [ ] `npx jest --ci` passes with no `act(...)` warnings, and `npm ls react react-native` shows one version of each.\n- [ ] Every new test sits next to its unit (an Android-only case in `\u003Cunit>.android.test.tsx`, a Node-API test under `test\u002F`, a route test in `src\u002Ffeatures\u002F`, none inside `src\u002Fapp\u002F`) and was seen failing on an assertion first.\n- [ ] Components and hooks render through the render helper, routes through the router helper; adapters are tested against the root mocks; services over fakes.\n- [ ] `npm run test:coverage` passes (90\u002F90\u002F90\u002F85 global, 95\u002F95\u002F95\u002F90 logic keys).\n- [ ] Finished logic modules: `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-mutation-report.mjs . --changed \u003Cfile>` prints `RESULT: PASS` (score at least 75%, no survivor in the file, its mutants actually tested).\n- [ ] `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-test-setup.mjs .` prints `RESULT: PASS` (it prints no SKIP line; `NOT APPLICABLE` only in a repo without `expo`).\n- [ ] `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-test-code.mjs .` prints `RESULT: PASS`\n\n## Anti-patterns\n\n- **`render(\u003CX \u002F>)` without the providers, or without `await`.** The component misses its catalog, stores and services, and the assertions run before React commits. Use `await renderWithProviders(\u003CX \u002F>, options)`.\n- **Mocking a store or one of the app's own modules to \"make the test easy\".** The test then proves the mock. Seed through the render helper's options and call the actions of the returned `stores`.\n- **A bag of `jest.fn()` standing in for a port.** It cannot prove order or state. Write or reuse `fake-\u003Cport>.ts` with a call log.\n- **`import { fetchProducts } from 'expo-iap'` in a test.** It crashes or reads a second instance. `jest.mock('expo-iap')` plus a typed `jest.requireMock`.\n- **`await new Promise((r) => setTimeout(r, 50))`.** Slow and flaky. `findBy*` for the screen, `flushMicrotasks()` for services.\n- **`Platform.OS = 'android'` in an iOS-project test.** It leaks into the next test, and `.android.tsx` files still resolve to iOS. Write `\u003Cunit>.android.test.tsx`.\n- **`renderRouter(...)` with `expect(screen).toHavePathname(...)`**, as Expo's SDK 57 testing guide shows it. `renderRouter` returns RNTL's render promise with the route getters attached to the promise, so the awaited result has none; with RNTL 14 its matchers and `testRouter` throw (`getPathname is not a function`), and it leaves fake timers on for the rest of the file (verified with expo-router 57.0.24). `await renderRouterWithProviders(routes)`, then `expect(view.getPathname())`.\n- **Tests in `__tests__\u002F\u003Cname>-test.tsx` or `*.spec.ts`**, as Expo's guide and Jest's defaults allow. No project runs them, so they pass by never running. Name every test `\u003Cunit>.test.ts(x)` beside its unit.\n- **`expect(view.toJSON()).toMatchSnapshot()` for a component.** It fails on every harmless change and proves nothing a user sees. Assert roles, names and state; readable data snapshots belong in a golden test.\n- **`queryByText(...)` with `toBeOnTheScreen()`, or `getByText(...)` with `.not.toBeOnTheScreen()`.** The first hides a missing element's error message, the second throws before asserting.\n- **`const TASKS = sortTasks([...])` above the `describe`.** The unit runs at import, Stryker marks every mutant of it static and skips it, and reports a score of NaN as a pass (verified). Call the unit inside `it()`; module-level fixtures are plain data.\n- **Weakening a gate to get green**: lower coverage numbers, a break under 75, `istanbul ignore`, `Stryker disable`, `jest.retryTimes`. This skill's checkers fail the numbers and the retries; quality-gates' bypass check fails both comments. Fix the test or the code; if a gate looks wrong, stop and ask the developer.\n\n## Files in this skill\n\n| File | What it is | Read\u002Frun when |\n|---|---|---|\n| [references\u002Fjest-config.md](references\u002Fjest-config.md) | Versions and re-verify commands, file layout, Babel, `jest.config.js` part by part, `jest.setup.ts`, the simulation config, scripts, the contract, when multi-package, known failures, flaky tests | Workflow step 1, and whenever a config or pin changes or Jest fails oddly |\n| [references\u002Fcomponent-tests.md](references\u002Fcomponent-tests.md) | RNTL 14 async model, the render helper and `test\u002Ftest-app.tsx`, queries, matchers, user-event, hooks, stores, gestures, Skia, Android behaviour, styles, what not to test | Workflow steps 2 and 3 for components, screens and hooks |\n| [references\u002Fmocks-and-fakes.md](references\u002Fmocks-and-fakes.md) | Root native-SDK mocks and why each exists, adapter tests with `requireMock`, fakes with call logs, services and policies over fakes | Workflow step 3 for adapters, services, policies |\n| [references\u002Fproperties.md](references\u002Fproperties.md) | Examples + fast-check properties + pinned values, `playActions`, the property checklist, counterexamples, simulations, `node:sqlite` placement | Workflow step 3 for pure logic |\n| [references\u002Fcoverage-and-mutation.md](references\u002Fcoverage-and-mutation.md) | Thresholds and key semantics, the device-only marker, subsets, Stryker config, reading survivors, a worked boundary example, equivalent mutants | Workflow steps 7 and 8 |\n| `templates\u002Fjest.config.js` | The one Jest config: unit, android and golden projects (CanvasKit with Skia), aliases, UTC, transforms, coverage gates (synced from the library; do not edit here) | Copy to the repo root (step 1) |\n| `templates\u002Fjest.setup.ts` | Gesture Handler, Worklets and Reanimated setup and the one guarded Skia mock, for unit, android and (without Skia) golden (synced; do not edit here) | Copy to the repo root (step 1) |\n| `templates\u002Fjest.sim.config.js` | Plain-Node config for `*.sim.test.ts` simulations (synced; do not edit here) | Copy only when the app has simulations (game-balance-and-bots) |\n| `templates\u002Fbabel.config.js` | Root Babel config whose Stryker override compiles only the instrumented files without the Worklets and Reanimated plugins (synced; do not edit here) | Copy to the repo root (step 1); replaces an old all-files branch (step 8) |\n| `templates\u002Fstryker.config.json` | Stryker scope, thresholds, ignore list, type-check scope, reporters (synced; do not edit here) | Copy to the repo root (step 1) |\n| `templates\u002Ftsconfig.stryker.json` | The jest-only program Stryker's type checker uses (synced; do not edit here) | Copy to the repo root (step 1) |\n| `templates\u002Fscripts\u002Fpackage.json` | Marks `scripts\u002F` as ES modules so Node loads the helper (synced; do not edit here) | Copy with the helper (step 1) |\n| `templates\u002Fscripts\u002Fquality\u002Fdevice-only.ts` | The one helper that turns `\u002F\u002F device-only: covered by ...` markers into coverage exclusions (synced; do not edit here) | Copy with `jest.config.js` (step 1) |\n| `templates\u002Fscripts\u002Fquality\u002Fdevice-only.test.ts` | The helper's test (synced; do not edit here) | Copy with the helper |\n| `templates\u002Ftest\u002Frender-with-providers.tsx` | `renderWithProviders`, `renderHookWithProviders`, `createProvidersWrapper` (synced; do not edit here) | Copy once (step 2) |\n| `templates\u002Ftest\u002Frender-with-providers.test.tsx` | The helper's own test and the model of every component and hook pattern (synced; do not edit here) | Copy with the helper; read before the first component test |\n| `templates\u002Ftest\u002Frender-router-with-providers.tsx` | `renderRouterWithProviders`: Expo Router's in-memory router inside the same providers, with route getters (synced; do not edit here) | Copy once when the app uses Expo Router (step 2) |\n| `templates\u002Ftest\u002Frender-router-with-providers.test.tsx` | Its test and the model of a route test: link press, deep link, navigation from outside React (synced; do not edit here) | Copy with the helper; read before the first route test |\n| `templates\u002Ftest\u002Ftest-app.tsx` | The app's provider tree for tests: `ServicesProvider` over `createTestServices`, the `language` and `direction` options (react-intl that throws on a missing message, the text locale, the layout direction), a fresh TanStack Query cache (synced; do not edit here) | Copy once, then grow it in the app (step 2) |\n| `templates\u002Fsrc\u002F` | What `test-app.tsx` imports, synced from their owners (do not edit here): the composition root's test side (`services-context.tsx`, `create-test-services.ts`, the clock, error-log and direction-guard ports, `fake-clock.ts`, `core\u002Fdates\u002Fdate-key.ts`, `core\u002Fresult.ts`), `i18n\u002F{languages,digits,language-context,direction-context}` and `theme\u002Ftext-locale.tsx` | Step 2, each file only when the app has none at that path (never over the app's `languages.ts`) |\n| `templates\u002Ftest\u002Fflush-microtasks.ts` | Lets queued promise callbacks run without fake timers (synced; do not edit here) | Copy with the helper |\n| `templates\u002Ftest\u002Fplay-actions.ts` | Turns fast-check integers into legal action sequences for any pure model (synced; do not edit here) | Copy before the first property test of a reducer or policy |\n| `templates\u002Ftest\u002Fplay-actions.test.ts` | Its test, a compact property-test model (synced; do not edit here) | Copy with `play-actions.ts` |\n| `templates\u002Ftest\u002Fskia-mock.test.tsx` | Proves the central Skia mock (synced; do not edit here) | Copy when the app depends on Skia |\n| `templates\u002F__mocks__\u002F` | Root manual mocks: `expo-iap`, `expo-tracking-transparency`, `react-native-audio-api`, `react-native-google-mobile-ads`, `react-native-keyboard-controller` (synced; do not edit here) | Copy the mock of each SDK the app depends on |\n| `templates\u002Fcontracts\u002Ftest-setup.json` | The optional contract with the app's facts (render and router helpers, root mocks, logic folders), filled with the defaults | Copy when the app's logic or helper lives elsewhere |\n| `templates\u002Fcontracts\u002Ftest-setup.schema.json` | JSON Schema of the contract | With the contract |\n| [examples\u002Ftest-app.tsx](examples\u002Ftest-app.tsx) | `test\u002Ftest-app.tsx` fully wired for a Tasks app: services, seeded stores, catalogs, theme, query cache | Workflow step 2 |\n| [examples\u002Fuse-tasks-model.test.tsx](examples\u002Fuse-tasks-model.test.tsx) | A hook test: seeded through the helper, changed by a store action | To imitate for hooks |\n| [examples\u002Ftask-editor.android.test.tsx](examples\u002Ftask-editor.android.test.tsx) | An Android-only test: the hardware back button under `jest-expo\u002Fandroid`, on a screen and on the router stack | To imitate for Android behaviour |\n| [examples\u002Fexpo-iap-purchase-adapter.test.ts](examples\u002Fexpo-iap-purchase-adapter.test.ts) | An adapter test against a root mock with a typed `requireMock` | To imitate for adapters |\n| [examples\u002Ffake-purchase.ts](examples\u002Ffake-purchase.ts) | A fake port: a mutable script, a shared call log, emitted events | To imitate for fakes |\n| [examples\u002Fpremium-service.test.ts](examples\u002Fpremium-service.test.ts) | A service test over fakes: \"save, then finish the transaction\", and its failure paths (a refused save, a failed restore sync, the launch re-check, an unfinished purchase) | To imitate for services |\n| [examples\u002Ftask-list-reducer.test.ts](examples\u002Ftask-list-reducer.test.ts) | Pure logic: examples, invalid input, determinism, invariants over any action sequence, round trip, pinned value | To imitate for reducers and policies |\n| `assets\u002Fpackage.test-deps.json` | Test scripts, exact devDependency pins, and the React overrides for a multi-package repo | Workflow step 1 |\n| `assets\u002Fshared.json` | Declares the shared files this skill copies in | When adding a shared file |\n| `scripts\u002Fcheck-test-setup.mjs` | Checks pins and companions, one React and no `react-test-renderer`, scripts, Babel, one Jest config, the Jest projects and that every file Jest or Expo would take for a test runs in exactly one (other runners' folders left out), no test in the routes folder, aliases, transforms, coverage scope and the device-only exclusions, setup, simulations, Stryker and its tsconfig, root mocks, the render helper | Workflow step 1 and the definition of done |\n| `scripts\u002Fcheck-test-code.mjs` | Checks every test file of the repo (`__tests__\u002F` and `*.spec` ones too): awaits, the render helpers, queries, styles, snapshots, `react-test-renderer`, SDK imports, `requireMock`, store mocks, timers, sleeps, retries, `Platform.OS`, Expo Router's test API, imports across roots | Workflow step 6 and the definition of done |\n| `scripts\u002Fcheck-mutation-report.mjs` | Reads `reports\u002Fstryker\u002Fmutation.json`: score against the break threshold, survivors in `--changed` files, any file (or the whole report) with no tested mutant (a types-only file, or one whose every mutant failed to compile, needs none) | Workflow step 8 |\n| `scripts\u002Flib\u002Ftest-contract.mjs` | Shared by the two repo checkers: the contract, its defaults, manifests, the known root-mock SDKs, the helper names, the files Jest or Expo would take for tests, and the folders other runners own | Read when changing a checker |\n| `scripts\u002Flib\u002Fconfig-lines.mjs` | Finds the line of a key in `package.json`, `stryker.config.json` and `jest.config.js` (per Jest project) for check-test-setup's problem lines | Read when changing check-test-setup |\n| `scripts\u002Flib\u002Fsource-scan.mjs` | Shared lexer; check-test-code uses its `maskCode` to walk call chains without being misled by strings (synced; do not edit here) | Never by hand |\n| `scripts\u002Fselftest.mjs` | Proves the three checkers pass their good fixtures and catch every planted bug | After changing a checker |\n| `scripts\u002Fcheck-lib.mjs` | Shared script helper (synced; do not edit here) | Never by hand |\n| `tests\u002Fbases\u002F` | Base trees the fixtures start from: a single Expo app, and a layer that turns it into a monorepo | When adding a fixture |\n| `tests\u002Ffixtures\u002F` | Good, pass, bad and error cases for each checker (overlay format) | When adding a rule to a checker |\n\n## Related skills\n\n- `typescript-and-lint-rules` - the tsconfig set (`tsconfig.base.json`) that `tsconfig.stryker.json` extends, and the lint rules tests obey.\n- `tdd-workflow` - the red-green loop, test names and the order of layers.\n- `golden-and-snapshot-tests` - data and pixel goldens, the golden project's matcher and when `jest -u` is allowed.\n- `e2e-maestro` - what flows prove on simulators and emulators instead of Jest; the device-only reason names a flow.\n- `quality-gates` - `check:fast`, `verify` and the guardrail around these configs.\n- `architecture-and-boundaries` - ports, adapters, `ServicesProvider` and `createTestServices`.\n- `state-management-zustand` - the store factories the test app seeds.\n- `persistence-and-migrations` - the `node:sqlite` driver and migration tests under `test\u002F`.\n- `i18n-strings-and-catalogs` - the catalogs the test app loads and the bidi isolates in accessible names.\n- `seeded-determinism-and-golden-vectors` - pinned sequences and independent oracles.\n- `skia-canvas-rendering` - draw-call tests and the frame clock.\n",{"name":5,"description":7},"main","41a0e66d4d09de5b46e6537f59a97c7192473486","skills\u002Funit-and-component-tests",2,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills","https:\u002F\u002Fzakaria.dev\u002FReactNative-Skills\u002F","https:\u002F\u002Fgithub.com\u002Fzakariaf","https:\u002F\u002Fzakaria.dev","Seniore Software Engineer","2026-10-22 07:05:00",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add zakariaf\u002FReactNative-Skills --skill unit-and-component-tests",{"tool":40,"command":41},"bunx","bunx skills add zakariaf\u002FReactNative-Skills --skill unit-and-component-tests",{"tool":43,"command":44},"pnpm","pnpm dlx skills add zakariaf\u002FReactNative-Skills --skill unit-and-component-tests","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002FSKILL.md",true,[48,54,58,64,68,72,78,82,86,90,96,100,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,236,240,244,247,251,255,259,263,267,271,275,279,283,287,291,295,299,303,307,311,315,319,323,327,331,335,339,343,347,351,355,359,363,367,371,375,379,383,387,391,395,399,403,407,411,415,419,423,427,431,435,439,443,447,451,455,459,463,467,471,474,478,482,486,489],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"assets\u002Fpackage.test-deps.json","ASSET","资产文件",1576,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Fassets\u002Fpackage.test-deps.json",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"assets\u002Fshared.json",4194,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Fassets\u002Fshared.json",{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"examples\u002Fexpo-iap-purchase-adapter.test.ts","SCRIPT","脚本",2259,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Fexamples\u002Fexpo-iap-purchase-adapter.test.ts",{"path":65,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":66,"sourceHtmlUrl":67},"examples\u002Ffake-purchase.ts",2551,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Fexamples\u002Ffake-purchase.ts",{"path":69,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":70,"sourceHtmlUrl":71},"examples\u002Fpremium-service.test.ts",5911,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Fexamples\u002Fpremium-service.test.ts",{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"examples\u002Ftask-editor.android.test.tsx","OTHER","其他",1866,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Fexamples\u002Ftask-editor.android.test.tsx",{"path":79,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":80,"sourceHtmlUrl":81},"examples\u002Ftask-list-reducer.test.ts",3254,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Fexamples\u002Ftask-list-reducer.test.ts",{"path":83,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":84,"sourceHtmlUrl":85},"examples\u002Ftest-app.tsx",6260,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Fexamples\u002Ftest-app.tsx",{"path":87,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":88,"sourceHtmlUrl":89},"examples\u002Fuse-tasks-model.test.tsx",1641,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Fexamples\u002Fuse-tasks-model.test.tsx",{"path":91,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":94,"sourceHtmlUrl":95},"references\u002Fcomponent-tests.md","REFERENCE","参考文档",25298,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Freferences\u002Fcomponent-tests.md",{"path":97,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":98,"sourceHtmlUrl":99},"references\u002Fcoverage-and-mutation.md",14942,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Freferences\u002Fcoverage-and-mutation.md",{"path":101,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":102,"sourceHtmlUrl":103},"references\u002Fjest-config.md",35675,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Freferences\u002Fjest-config.md",{"path":105,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":106,"sourceHtmlUrl":107},"references\u002Fmocks-and-fakes.md",9277,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Freferences\u002Fmocks-and-fakes.md",{"path":109,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":110,"sourceHtmlUrl":111},"references\u002Fproperties.md",6734,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Freferences\u002Fproperties.md",{"path":113,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":114,"sourceHtmlUrl":115},"scripts\u002Fcheck-lib.mjs",119923,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Fscripts\u002Fcheck-lib.mjs",{"path":117,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":118,"sourceHtmlUrl":119},"scripts\u002Fcheck-mutation-report.mjs",11420,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Fscripts\u002Fcheck-mutation-report.mjs",{"path":121,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":122,"sourceHtmlUrl":123},"scripts\u002Fcheck-test-code.mjs",36495,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Fscripts\u002Fcheck-test-code.mjs",{"path":125,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":126,"sourceHtmlUrl":127},"scripts\u002Fcheck-test-setup.mjs",66362,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Fscripts\u002Fcheck-test-setup.mjs",{"path":129,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":130,"sourceHtmlUrl":131},"scripts\u002Flib\u002Fconfig-lines.mjs",6351,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Fscripts\u002Flib\u002Fconfig-lines.mjs",{"path":133,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":134,"sourceHtmlUrl":135},"scripts\u002Flib\u002Fsource-scan.mjs",35908,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Fscripts\u002Flib\u002Fsource-scan.mjs",{"path":137,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":138,"sourceHtmlUrl":139},"scripts\u002Flib\u002Ftest-contract.mjs",14419,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Fscripts\u002Flib\u002Ftest-contract.mjs",{"path":141,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":142,"sourceHtmlUrl":143},"scripts\u002Fselftest.mjs",640,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Fscripts\u002Fselftest.mjs",{"path":145,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":146,"sourceHtmlUrl":147},"templates\u002F__mocks__\u002Fexpo-iap.ts",1277,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002F__mocks__\u002Fexpo-iap.ts",{"path":149,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":150,"sourceHtmlUrl":151},"templates\u002F__mocks__\u002Fexpo-tracking-transparency.ts",1417,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002F__mocks__\u002Fexpo-tracking-transparency.ts",{"path":153,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":154,"sourceHtmlUrl":155},"templates\u002F__mocks__\u002Freact-native-audio-api.ts",1308,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002F__mocks__\u002Freact-native-audio-api.ts",{"path":157,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":158,"sourceHtmlUrl":159},"templates\u002F__mocks__\u002Freact-native-google-mobile-ads.ts",3403,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002F__mocks__\u002Freact-native-google-mobile-ads.ts",{"path":161,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":162,"sourceHtmlUrl":163},"templates\u002F__mocks__\u002Freact-native-keyboard-controller.ts",459,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002F__mocks__\u002Freact-native-keyboard-controller.ts",{"path":165,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":166,"sourceHtmlUrl":167},"templates\u002Fbabel.config.js",1480,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Fbabel.config.js",{"path":169,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":170,"sourceHtmlUrl":171},"templates\u002Fcontracts\u002Ftest-setup.json",1074,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Fcontracts\u002Ftest-setup.json",{"path":173,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":174,"sourceHtmlUrl":175},"templates\u002Fcontracts\u002Ftest-setup.schema.json",4034,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Fcontracts\u002Ftest-setup.schema.json",{"path":177,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":178,"sourceHtmlUrl":179},"templates\u002Fjest.config.js",7605,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Fjest.config.js",{"path":181,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":182,"sourceHtmlUrl":183},"templates\u002Fjest.setup.ts",2535,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Fjest.setup.ts",{"path":185,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":186,"sourceHtmlUrl":187},"templates\u002Fjest.sim.config.js",921,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Fjest.sim.config.js",{"path":189,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":190,"sourceHtmlUrl":191},"templates\u002Fscripts\u002Fpackage.json",23,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Fscripts\u002Fpackage.json",{"path":193,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":194,"sourceHtmlUrl":195},"templates\u002Fscripts\u002Fquality\u002Fdevice-only.test.ts",2984,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Fscripts\u002Fquality\u002Fdevice-only.test.ts",{"path":197,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":198,"sourceHtmlUrl":199},"templates\u002Fscripts\u002Fquality\u002Fdevice-only.ts",2069,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Fscripts\u002Fquality\u002Fdevice-only.ts",{"path":201,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":202,"sourceHtmlUrl":203},"templates\u002Fsrc\u002Fcore\u002Fdates\u002Fdate-key.test.ts",3304,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Fsrc\u002Fcore\u002Fdates\u002Fdate-key.test.ts",{"path":205,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":206,"sourceHtmlUrl":207},"templates\u002Fsrc\u002Fcore\u002Fdates\u002Fdate-key.ts",2692,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Fsrc\u002Fcore\u002Fdates\u002Fdate-key.ts",{"path":209,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":210,"sourceHtmlUrl":211},"templates\u002Fsrc\u002Fcore\u002Fresult.ts",1831,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Fsrc\u002Fcore\u002Fresult.ts",{"path":213,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":214,"sourceHtmlUrl":215},"templates\u002Fsrc\u002Fi18n\u002Fdigits.ts",1159,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Fsrc\u002Fi18n\u002Fdigits.ts",{"path":217,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":218,"sourceHtmlUrl":219},"templates\u002Fsrc\u002Fi18n\u002Fdirection-context.tsx",1058,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Fsrc\u002Fi18n\u002Fdirection-context.tsx",{"path":221,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":222,"sourceHtmlUrl":223},"templates\u002Fsrc\u002Fi18n\u002Flanguage-context.tsx",415,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Fsrc\u002Fi18n\u002Flanguage-context.tsx",{"path":225,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":226,"sourceHtmlUrl":227},"templates\u002Fsrc\u002Fi18n\u002Flanguages.ts",1306,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Fsrc\u002Fi18n\u002Flanguages.ts",{"path":229,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":230,"sourceHtmlUrl":231},"templates\u002Fsrc\u002Fservices\u002Fclock\u002Fclock-port.ts",955,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Fsrc\u002Fservices\u002Fclock\u002Fclock-port.ts",{"path":233,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":234,"sourceHtmlUrl":235},"templates\u002Fsrc\u002Fservices\u002Fclock\u002Ffake-clock.test.ts",1897,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Fsrc\u002Fservices\u002Fclock\u002Ffake-clock.test.ts",{"path":237,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":238,"sourceHtmlUrl":239},"templates\u002Fsrc\u002Fservices\u002Fclock\u002Ffake-clock.ts",1643,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Fsrc\u002Fservices\u002Fclock\u002Ffake-clock.ts",{"path":241,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":242,"sourceHtmlUrl":243},"templates\u002Fsrc\u002Fservices\u002Fcreate-test-services.test.ts",676,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Fsrc\u002Fservices\u002Fcreate-test-services.test.ts",{"path":245,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":170,"sourceHtmlUrl":246},"templates\u002Fsrc\u002Fservices\u002Fcreate-test-services.ts","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Fsrc\u002Fservices\u002Fcreate-test-services.ts",{"path":248,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":249,"sourceHtmlUrl":250},"templates\u002Fsrc\u002Fservices\u002Fdirection-guard\u002Fdirection-guard-port.ts",1288,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Fsrc\u002Fservices\u002Fdirection-guard\u002Fdirection-guard-port.ts",{"path":252,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":253,"sourceHtmlUrl":254},"templates\u002Fsrc\u002Fservices\u002Ferror-log\u002Ferror-log-port.ts",941,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Fsrc\u002Fservices\u002Ferror-log\u002Ferror-log-port.ts",{"path":256,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":257,"sourceHtmlUrl":258},"templates\u002Fsrc\u002Fservices\u002Fservices-context.test.tsx",1179,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Fsrc\u002Fservices\u002Fservices-context.test.tsx",{"path":260,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":261,"sourceHtmlUrl":262},"templates\u002Fsrc\u002Fservices\u002Fservices-context.tsx",1490,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Fsrc\u002Fservices\u002Fservices-context.tsx",{"path":264,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":265,"sourceHtmlUrl":266},"templates\u002Fsrc\u002Ftheme\u002Ftext-locale.tsx",1447,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Fsrc\u002Ftheme\u002Ftext-locale.tsx",{"path":268,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":269,"sourceHtmlUrl":270},"templates\u002Fstryker.config.json",1256,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Fstryker.config.json",{"path":272,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":273,"sourceHtmlUrl":274},"templates\u002Ftest\u002Fflush-microtasks.ts",358,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Ftest\u002Fflush-microtasks.ts",{"path":276,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":277,"sourceHtmlUrl":278},"templates\u002Ftest\u002Fplay-actions.test.ts",2414,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Ftest\u002Fplay-actions.test.ts",{"path":280,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":281,"sourceHtmlUrl":282},"templates\u002Ftest\u002Fplay-actions.ts",1543,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Ftest\u002Fplay-actions.ts",{"path":284,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":285,"sourceHtmlUrl":286},"templates\u002Ftest\u002Frender-router-with-providers.test.tsx",2758,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Ftest\u002Frender-router-with-providers.test.tsx",{"path":288,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":289,"sourceHtmlUrl":290},"templates\u002Ftest\u002Frender-router-with-providers.tsx",2703,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Ftest\u002Frender-router-with-providers.tsx",{"path":292,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":293,"sourceHtmlUrl":294},"templates\u002Ftest\u002Frender-with-providers.test.tsx",5249,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Ftest\u002Frender-with-providers.test.tsx",{"path":296,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":297,"sourceHtmlUrl":298},"templates\u002Ftest\u002Frender-with-providers.tsx",2195,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Ftest\u002Frender-with-providers.tsx",{"path":300,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":301,"sourceHtmlUrl":302},"templates\u002Ftest\u002Fskia-mock.test.tsx",802,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Ftest\u002Fskia-mock.test.tsx",{"path":304,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":305,"sourceHtmlUrl":306},"templates\u002Ftest\u002Ftest-app.tsx",5795,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Ftest\u002Ftest-app.tsx",{"path":308,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":309,"sourceHtmlUrl":310},"templates\u002Ftsconfig.stryker.json",278,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftemplates\u002Ftsconfig.stryker.json",{"path":312,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":313,"sourceHtmlUrl":314},"tests\u002Fbases\u002Fapp\u002Fpackage.json",1255,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Fbases\u002Fapp\u002Fpackage.json",{"path":316,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":317,"sourceHtmlUrl":318},"tests\u002Fbases\u002Fapp\u002Fsrc\u002Fapp\u002F_layout.tsx",151,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Fbases\u002Fapp\u002Fsrc\u002Fapp\u002F_layout.tsx",{"path":320,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":321,"sourceHtmlUrl":322},"tests\u002Fbases\u002Fapp\u002Fsrc\u002Fcore\u002Ftask-filter.ts",155,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Fbases\u002Fapp\u002Fsrc\u002Fcore\u002Ftask-filter.ts",{"path":324,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":325,"sourceHtmlUrl":326},"tests\u002Fbases\u002Fapp\u002Fsrc\u002Ffeatures\u002Ftasks\u002Fcomponents\u002Ftask-row.test.tsx",468,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Fbases\u002Fapp\u002Fsrc\u002Ffeatures\u002Ftasks\u002Fcomponents\u002Ftask-row.test.tsx",{"path":328,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":329,"sourceHtmlUrl":330},"tests\u002Fbases\u002Fapp\u002Fsrc\u002Ffeatures\u002Ftasks\u002Fcomponents\u002Ftask-row.tsx",139,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Fbases\u002Fapp\u002Fsrc\u002Ffeatures\u002Ftasks\u002Fcomponents\u002Ftask-row.tsx",{"path":332,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":333,"sourceHtmlUrl":334},"tests\u002Fbases\u002Fapp\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftasks-screen.test.tsx",425,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Fbases\u002Fapp\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftasks-screen.test.tsx",{"path":336,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":337,"sourceHtmlUrl":338},"tests\u002Fbases\u002Fapp\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftasks-screen.tsx",94,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Fbases\u002Fapp\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftasks-screen.tsx",{"path":340,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":341,"sourceHtmlUrl":342},"tests\u002Fbases\u002Fapp\u002Ftsconfig.base.json",180,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Fbases\u002Fapp\u002Ftsconfig.base.json",{"path":344,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":345,"sourceHtmlUrl":346},"tests\u002Fbases\u002Fapp\u002Ftsconfig.json",176,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Fbases\u002Fapp\u002Ftsconfig.json",{"path":348,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":349,"sourceHtmlUrl":350},"tests\u002Fbases\u002Fmonorepo\u002Fapps\u002Fmobile\u002Fpackage.json",323,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Fbases\u002Fmonorepo\u002Fapps\u002Fmobile\u002Fpackage.json",{"path":352,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":353,"sourceHtmlUrl":354},"tests\u002Fbases\u002Fmonorepo\u002Fcontracts\u002Ftest-setup.json",357,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Fbases\u002Fmonorepo\u002Fcontracts\u002Ftest-setup.json",{"path":356,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":357,"sourceHtmlUrl":358},"tests\u002Fbases\u002Fmonorepo\u002Fjest.config.js",3075,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Fbases\u002Fmonorepo\u002Fjest.config.js",{"path":360,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":361,"sourceHtmlUrl":362},"tests\u002Fbases\u002Fmonorepo\u002Fjest.sim.config.js",508,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Fbases\u002Fmonorepo\u002Fjest.sim.config.js",{"path":364,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":365,"sourceHtmlUrl":366},"tests\u002Fbases\u002Fmonorepo\u002Fpackage.json",781,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Fbases\u002Fmonorepo\u002Fpackage.json",{"path":368,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":369,"sourceHtmlUrl":370},"tests\u002Fbases\u002Fmonorepo\u002Fpackages\u002Fcore\u002Fpackage.json",70,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Fbases\u002Fmonorepo\u002Fpackages\u002Fcore\u002Fpackage.json",{"path":372,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":373,"sourceHtmlUrl":374},"tests\u002Fbases\u002Fmonorepo\u002Fpackages\u002Fcore\u002Fsrc\u002Fsum.ts",147,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Fbases\u002Fmonorepo\u002Fpackages\u002Fcore\u002Fsrc\u002Fsum.ts",{"path":376,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":377,"sourceHtmlUrl":378},"tests\u002Fbases\u002Fmonorepo\u002Fscripts\u002Fquality\u002Fdevice-only.ts",1317,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Fbases\u002Fmonorepo\u002Fscripts\u002Fquality\u002Fdevice-only.ts",{"path":380,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":381,"sourceHtmlUrl":382},"tests\u002Fbases\u002Fmonorepo\u002Fstryker.config.json",599,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Fbases\u002Fmonorepo\u002Fstryker.config.json",{"path":384,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":385,"sourceHtmlUrl":386},"tests\u002Fbases\u002Fmonorepo\u002Ftsconfig.json",92,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Fbases\u002Fmonorepo\u002Ftsconfig.json",{"path":388,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":389,"sourceHtmlUrl":390},"tests\u002Ffixtures\u002Fcheck-mutation-report\u002FCASES.json",16356,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Ffixtures\u002Fcheck-mutation-report\u002FCASES.json",{"path":392,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":393,"sourceHtmlUrl":394},"tests\u002Ffixtures\u002Fcheck-mutation-report\u002Fgood\u002FARGS.txt",58,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Ffixtures\u002Fcheck-mutation-report\u002Fgood\u002FARGS.txt",{"path":396,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":397,"sourceHtmlUrl":398},"tests\u002Ffixtures\u002Fcheck-mutation-report\u002Fgood\u002FEXPECT.txt",159,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Ffixtures\u002Fcheck-mutation-report\u002Fgood\u002FEXPECT.txt",{"path":400,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":401,"sourceHtmlUrl":402},"tests\u002Ffixtures\u002Fcheck-mutation-report\u002Fgood\u002Freports\u002Fstryker\u002Fmutation.json",5383,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Ffixtures\u002Fcheck-mutation-report\u002Fgood\u002Freports\u002Fstryker\u002Fmutation.json",{"path":404,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":405,"sourceHtmlUrl":406},"tests\u002Ffixtures\u002Fcheck-mutation-report\u002FSUITE.json",21,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Ffixtures\u002Fcheck-mutation-report\u002FSUITE.json",{"path":408,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":409,"sourceHtmlUrl":410},"tests\u002Ffixtures\u002Fcheck-test-code\u002FCASES.json",28341,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Ffixtures\u002Fcheck-test-code\u002FCASES.json",{"path":412,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":413,"sourceHtmlUrl":414},"tests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002FEXPECT.txt",64,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002FEXPECT.txt",{"path":416,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":417,"sourceHtmlUrl":418},"tests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Fsrc\u002Fcore\u002Ftask-filter.test.ts",478,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Fsrc\u002Fcore\u002Ftask-filter.test.ts",{"path":420,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":421,"sourceHtmlUrl":422},"tests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Fcomponents\u002Ftask-row.android.test.tsx",571,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Fcomponents\u002Ftask-row.android.test.tsx",{"path":424,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":425,"sourceHtmlUrl":426},"tests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Fcomponents\u002Ftask-row.test.tsx",471,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Fcomponents\u002Ftask-row.test.tsx",{"path":428,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":429,"sourceHtmlUrl":430},"tests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftask-feed-counter.test.tsx",916,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftask-feed-counter.test.tsx",{"path":432,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":433,"sourceHtmlUrl":434},"tests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftask-filter-context.test.tsx",919,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftask-filter-context.test.tsx",{"path":436,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":437,"sourceHtmlUrl":438},"tests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftask-list.golden.test.ts",286,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftask-list.golden.test.ts",{"path":440,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":441,"sourceHtmlUrl":442},"tests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftask-progress.test.tsx",610,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftask-progress.test.tsx",{"path":444,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":445,"sourceHtmlUrl":446},"tests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftask-rows.test.tsx",1626,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftask-rows.test.tsx",{"path":448,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":449,"sourceHtmlUrl":450},"tests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftasks-navigation.test.tsx",1130,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftasks-navigation.test.tsx",{"path":452,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":453,"sourceHtmlUrl":454},"tests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftasks-screen.test.tsx",1033,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftasks-screen.test.tsx",{"path":456,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":457,"sourceHtmlUrl":458},"tests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Fuse-tasks-model.test.tsx",937,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Fsrc\u002Ffeatures\u002Ftasks\u002Fuse-tasks-model.test.tsx",{"path":460,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":461,"sourceHtmlUrl":462},"tests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Fsrc\u002Fservices\u002Fasync\u002Fwith-timeout.test.ts",3127,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Fsrc\u002Fservices\u002Fasync\u002Fwith-timeout.test.ts",{"path":464,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":465,"sourceHtmlUrl":466},"tests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Fsrc\u002Fservices\u002Fpurchase\u002Fexpo-iap-purchase-adapter.test.ts",566,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Fsrc\u002Fservices\u002Fpurchase\u002Fexpo-iap-purchase-adapter.test.ts",{"path":468,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":469,"sourceHtmlUrl":470},"tests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Fsrc\u002Fui\u002Fprogress-bar.test.tsx",453,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Fsrc\u002Fui\u002Fprogress-bar.test.tsx",{"path":472,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":381,"sourceHtmlUrl":473},"tests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Ftest\u002Fintegration\u002Fdata\u002Ftask-repository.test.ts","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Ftest\u002Fintegration\u002Fdata\u002Ftask-repository.test.ts",{"path":475,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":476,"sourceHtmlUrl":477},"tests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Ftsconfig.json",108,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Ffixtures\u002Fcheck-test-code\u002Fgood\u002Ftsconfig.json",{"path":479,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":480,"sourceHtmlUrl":481},"tests\u002Ffixtures\u002Fcheck-test-code\u002FSUITE.json",3917,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Ffixtures\u002Fcheck-test-code\u002FSUITE.json",{"path":483,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":484,"sourceHtmlUrl":485},"tests\u002Ffixtures\u002Fcheck-test-setup\u002FCASES.json",36853,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Ffixtures\u002Fcheck-test-setup\u002FCASES.json",{"path":487,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":393,"sourceHtmlUrl":488},"tests\u002Ffixtures\u002Fcheck-test-setup\u002Fgood\u002FEXPECT.txt","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Ffixtures\u002Fcheck-test-setup\u002Fgood\u002FEXPECT.txt",{"path":490,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":491,"sourceHtmlUrl":492},"tests\u002Ffixtures\u002Fcheck-test-setup\u002FSUITE.json",4585,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002Ftests\u002Ffixtures\u002Fcheck-test-setup\u002FSUITE.json",[494,501,507,514,521,528],{"skillNo":495,"name":496,"nameZh":6,"description":497,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":498,"categories":499,"keywords":500,"publishedAt":19},"01M7F2S4KZG97D21GEJ2GKKYK1","demo","Planted skill folder (never scanned).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-support\u002Ftests\u002Fbases\u002Fapp\u002Fskills\u002Fdemo\u002FSKILL.md",[],[],{"skillNo":502,"name":496,"nameZh":6,"description":503,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":504,"categories":505,"keywords":506,"publishedAt":19},"01M7F2S1F4ATZ49909EDKWA9E6","Planted installed skill (its files must never be scanned).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-support\u002Ftests\u002Fbases\u002Fapp\u002F.agents\u002Fskills\u002Fdemo\u002FSKILL.md",[],[],{"skillNo":508,"name":509,"nameZh":6,"description":510,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":511,"categories":512,"keywords":513,"publishedAt":19},"01M7F2RXGPZJ5Q1FV2HQ1PJ6AX","web-support","Ships the web build of an Expo app: platform files, APIs missing in react-native-web, expo-sqlite headers. Use when adding web, a .web.tsx file or expo export --platform web. Not for responsive layout (adaptive-layout).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-support\u002FSKILL.md",[],[],{"skillNo":515,"name":516,"nameZh":6,"description":517,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":518,"categories":519,"keywords":520,"publishedAt":19},"01M7F2RQ43JFA4QFWQEHBET08G","value-objects-money-and-units","Stores money as ISO 4217 minor units, quantities in canonical units, instants as epoch ms. Use when adding a price, currency, tax, split, unit or timestamp, or a total is a cent off. Not for calendar days (dates-streaks-and-statistics).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalue-objects-money-and-units\u002FSKILL.md",[],[],{"skillNo":522,"name":523,"nameZh":6,"description":524,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":525,"categories":526,"keywords":527,"publishedAt":19},"01M7F2RAEDWQ6H4514HFRWJAE6","ui-states-and-feedback","Builds loading, empty, failed and offline states, delayed skeletons, toasts, banners, confirms, Undo. Use when a screen loads data, shows a spinner, toast, retry or delete prompt. Not for failure values (error-handling-typed-results).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fui-states-and-feedback\u002FSKILL.md",[],[],{"skillNo":529,"name":530,"nameZh":6,"description":531,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":532,"categories":533,"keywords":534,"publishedAt":19},"01M7F2R51MDCFCKEQH4M0175X0","ui-component-library","Builds shared src\u002Fui components (buttons, rows, dialogs, toasts, cards): token sizes, every state, a required testID, a test each. Use when adding or changing a shared component. Not for tokens (design-system-structure).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fui-component-library\u002FSKILL.md",[],[]]