open-index/open-npm huggingface dataset:
npm package: @nullshot/test-utils
Description: Testing utilities for Cloudflare Workers projects - designed specifically for Workers runtime
Latest version: 0.3.3

# @nullshot/test-utils

Testing utilities for nullshot projects.

## Installation

```bash
yarn add -D @nullshot/test-utils
```

## Usage

This package provides utilities for testing MCP applications, particularly in Cloudflare Worker environments.

### Available Utilities

- `WorkerSSEClientTransport`: A client transport for Server-Sent Events (SSE) in Worker environments
- `WorkerWebSocketClientTransport`: A client transport for WebSocket connections in Worker environments

### Example

```typescript
import { WorkerSSEClientTransport } from "@nullshot/test-utils";

// Set up test client
const transport = new WorkerSSEClientTransport({
  endpoint: "https://your-worker.example.com/sse",
});

// Use in tests
// ...
```

## License

MIT