The project uses Jest for unit testing across all packages and the mobile app.Documentation Index
Fetch the complete documentation index at: https://docs.mobile-starter.amisi.ai/llms.txt
Use this file to discover all available pages before exploring further.
Running tests
Run all tests
Run tests across the entire workspace:Run package tests
Run tests for all packages only:Run mobile app tests
Run tests for the mobile app:Mobile tests currently require additional React Native/Expo setup and are skipped by default.
Run tests for a specific package
Run tests for an individual package:Test configuration
Each package has its own test configuration:jest.config.ts- Package-specific Jest configurationtsconfig.spec.json- TypeScript configuration for test files- Root
jest.preset.js- Shared Jest configuration for all packages
Writing tests
Test file naming
Test files should use one of these extensions:.test.ts- TypeScript tests.spec.ts- TypeScript spec files.test.tsx- React component tests.spec.tsx- React component spec files
Test file location
Place test files next to the code they test:Example test
Coverage reports
Test coverage reports are generated in:Continuous integration
Theverify script runs linting, type checking, and tests on affected projects: