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 Oct 29, 2024
1 parent 2db6be2 commit b3267b1
Show file tree
Hide file tree
Showing 5 changed files with 407 additions and 4 deletions.
257 changes: 254 additions & 3 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 @@ -109,6 +109,7 @@
"devDependencies": {
"@bufbuild/buf": "^1.26.1",
"@comapeo/core2.0.1": "npm:@comapeo/[email protected]",
"@comapeo/ipc": "^2.0.2",
"@mapeo/default-config": "5.0.0",
"@mapeo/mock-data": "^2.1.1",
"@sinonjs/fake-timers": "^10.0.2",
Expand Down Expand Up @@ -161,7 +162,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",
"b4a": "^1.6.3",
"bcp-47": "^2.1.0",
"better-sqlite3": "^8.7.0",
Expand Down
Loading

0 comments on commit b3267b1

Please sign in to comment.