https://github.com/tetherto/tether-svc-test-helper
https://github.com/tetherto/tether-svc-test-helper
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tetherto/tether-svc-test-helper
- Owner: tetherto
- Created: 2025-07-18T05:39:14.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2026-05-05T11:46:08.000Z (about 1 month ago)
- Last Synced: 2026-05-05T12:27:13.999Z (about 1 month ago)
- Language: JavaScript
- Size: 89.8 KB
- Stars: 0
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tether-svc-test-helper
A library for testing Tether workers.
## Features
- Start and stop Tether worker instances programmatically
- Connect to workers and perform RPC requests
- Automatically detects worker readiness and handles RPC key changes
- Includes retry logic for robust RPC communication
## Usage
```js
const { createWorker } = require('./lib/worker')
const createClient = require('./lib/client')
const worker = createWorker({ ...config })
await worker.start()
const client = createClient(worker)
await client.connect()
const response = await client.request('ping', { message: 'Hello, Tether!' })
console.log(response)
await client.stop()
await worker.stop()
```
See `examples/example.js` for a complete usage example.