Skip to content

chore: add e2e testing app#49

Merged
achou11 merged 34 commits intomainfrom
experiments/embedded-tests
May 4, 2026
Merged

chore: add e2e testing app#49
achou11 merged 34 commits intomainfrom
experiments/embedded-tests

Conversation

@achou11
Copy link
Copy Markdown
Member

@achou11 achou11 commented Apr 30, 2026

Adds a testing app to applications/e2e that can be used to run on-device e2e tests. Uses an identical approach to Expo's test suite for their native modules by running jasmine-core@5 in the application.

Introduced tests are non-exhaustive. Have currently only ported the project CRUD tests from core, some of which are failing (seemingly due to legitimate reasons)


Screenshot 2026-05-04 at 12 55 06
Screen.Recording.2026-05-04.at.12.55.13.mov

Comment on lines +2 to +12
import {
valueOf,
type ComapeoDoc,
type ComapeoValue,
type FieldValue,
type ObservationValue,
type PresetValue,
type RemoteDetectionAlertValue,
type TrackValue,
} from '@comapeo/core/schema.js'
import type { MapeoProjectApi } from '@comapeo/ipc'
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Future task is to export relevant types from @comapeo/core-react-native such that the app never needs to install and reference core or ipc.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mostly generated via Claude, with some manual adjustments based on usage.

@achou11 achou11 merged commit 381e346 into main May 4, 2026
7 checks passed
@achou11 achou11 deleted the experiments/embedded-tests branch May 4, 2026 14:01
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