Skip to content

Commit

Permalink
test: basic test that uses IPC
Browse files Browse the repository at this point in the history
CoMapeo Mobile doesn't use `MapeoManager` directly; it uses an IPC
bridge.

This adds a test that creates a manager in a separate process and uses
`@comapeo/ipc` to test it.

This is something we've been discussing for awhile, and this finally
implements it. I think this is useful on its own but also makes a
future change easier.
  • Loading branch information
EvanHahn committed Dec 12, 2024
1 parent f073ca9 commit 3a22959
Show file tree
Hide file tree
Showing 5 changed files with 341 additions and 28 deletions.
215 changes: 188 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
"@bufbuild/buf": "^1.26.1",
"@comapeo/cloud": "^0.1.0",
"@comapeo/core2.0.1": "npm:@comapeo/[email protected]",
"@comapeo/ipc": "^2.1.0",
"@mapeo/default-config": "5.0.0",
"@mapeo/mock-data": "^2.1.1",
"@sinonjs/fake-timers": "^10.0.2",
Expand Down Expand Up @@ -165,7 +166,7 @@
"@hyperswarm/secret-stream": "^6.6.3",
"@mapeo/crypto": "1.0.0-alpha.10",
"@mapeo/sqlite-indexer": "1.0.0-alpha.9",
"@sinclair/typebox": "^0.29.6",
"@sinclair/typebox": "^0.33.17",
"@sindresorhus/merge-streams": "^4.0.0",
"b4a": "^1.6.3",
"bcp-47": "^2.1.0",
Expand Down
Loading

0 comments on commit 3a22959

Please sign in to comment.