// Test runner for Anrubic MCP Server
import { PassThrough } from "node:stream";
import { run } from "node:test";
import { spec } from "node:test/reporters";

async function runTests() {
  console.log("🧪 Running Anrubic MCP Server Tests...\n");

  const stream = run({
    files: ["test/mcp-protocol.test.ts", "test/mcp-tools.test.ts"],
  });

  stream.compose(new spec()).pipe(new PassThrough()).pipe(process.stdout);
}

runTests().catch(console.error);
