From the project root:
pnpm testThis runs tests for: core, client, react, adapters, adapter-better-auth, mcp-server.
SDKROOT=$(/usr/bin/xcrun --sdk macosx --show-sdk-path) cargo test --release -p topgun-serverpnpm test:integration-rustpnpm --filter @topgunbuild/core test
pnpm --filter @topgunbuild/client test
pnpm --filter @topgunbuild/react testpnpm test:k6:smoke
pnpm test:k6:throughput
pnpm test:k6:write
pnpm test:k6:connectionspnpm test -- --verbosepnpm test -- --watchpnpm test:coverage
pnpm --filter @topgunbuild/core test:coverageLWWMap.test.ts- Last-Write-Wins Map implementationMerkleTree.test.ts- Merkle Tree synchronization- Message schema tests, HLC tests, serialization tests
- SyncEngine tests, QueryHandle tests, TopGunClient tests
- 509+ unit tests covering all domain services
- CRDT, Sync, Query, Search, Messaging, Persistence, Coordination
- Run via
cargo test
- 55 tests validating TS client against Rust server
- Covers CRDT operations, sync protocol, queries, search, auth
- Clean install:
pnpm install - Full reinstall:
rm -rf node_modules packages/*/node_modules && pnpm install
- Run TS tests sequentially to avoid port conflicts:
pnpm test -- --runInBand - Rust tests:
cargo test --release(uses parallel test harness by default) - Integration tests require the Rust server binary:
cargo build --release --bin test-server