Skip to content

Conversation

@apedley
Copy link
Contributor

@apedley apedley commented Jan 9, 2026

Finished setting up testing environment. Added a placeholder MainScreen test to confirm
Added unit tests for healthkit and healthconnect services
Added integration tests for healthConnectService.js and healthConnectService.ios.js

While adding these tests I encountered and fixed these bugs:

healthconnect/index.js - Fixed a bug where import failures were being suppressed so some data was not actually synced
healthkit/dataAggregation.js - Fixed a rare bug that could arise when steps or BPM could cause aggregation to fail

Cleaned up a bunch of dead code left after my healthkit aggregation refactor

Critical tests for HealthKit data aggregation and index
…ck in healthconnect/index.js

Added initial tests for health connect
Fixed a bug where health connect calories were not being counted if they were logged as kilocalories only
… testing setup

Updated weak tests in healthconnectservice.ios.test.js - they now actually check the shape of the data sent to the api
@CodeWithCJ CodeWithCJ merged commit 4b38667 into CodeWithCJ:main Jan 10, 2026
1 check passed
@apedley apedley deleted the services-tests branch January 10, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants