Workflow for implementing, running, and debugging mobile integration tests. Use this skill when working on `__tests__/integration` or when integration tests fail.
Mobile integration tests make real API calls to the gateway and require the backend (read service, write service, gateway) to be running.
api/read-service-api.yaml, api/write-service-api.yaml).__tests__/integration/.*.integration.test.js.renderScreenWithApi, waitForApiCall, waitForLoadingToFinish, createTestRoutine from __tests__/integration/helpers/test-utils.js.From mobile/ directory:
xq-infra generate -f ./test-env
xq-infra up
From mobile/ directory:
yarn test:integration
To watch:
yarn test:integration:watch
xq-infra down
jest.integration.config.jshttp://localhost:8080. Override with GATEWAY_URL.maxWorkers: 1 to avoid state conflicts in the real DB.xq-infra instances or containers on ports 5432/8080.xq-infra logs to see backend errors. Ensure data seeded by tests matches what the backend expects.