Testing & QA
expo-gaode-map uses automated tests to keep the core module and related packages stable.
What Is Covered
- Core module APIs (SDK init, privacy compliance, location APIs)
- MapView and overlay components (rendering and props)
- Utilities (error handling, module loading)
Run Tests
From the monorepo root:
bash
bun testRun tests for a specific package:
bash
cd packages/core
bun testRun a single test file or filter:
bash
cd packages/core
bun test ExpoGaodeMapModule
bun test --testNamePattern="SDK init"Generate a coverage report:
bash
cd packages/core
bun test --coverageLint
From the monorepo root:
bash
bun run lintDebug Tips
- Prefer running tests in a package directory when iterating on one module.
- If a test depends on React Native environment, keep it inside the package using
expo-module test.