- Test framework: Jest with the
react-nativepreset - Test environment setup:
jest-setup.ts - Auto-cleanup is configured from
src/index.tsunless explicitly skipped
- Library tests are typically colocated under
src/**/__tests__ - Coverage is collected from
srcand excludes test files
- Use
describeblocks to group tests by theme. - Do not put all tests into a single
describe. - Avoid nested
describeblocks. - If a
describewould contain only one test, make that test top-level instead. - Prefer
testoverit.