Skip to content
@two-go-testing

two-go-testing

two-go

Zero-dependency fluent service/API testing for Node.

two-go lets you build an HTTP request with a chainable API, attach the checks you care about, and await it. No test runner required. It works standalone or inside node:test, Jest, Vitest, and Mocha.

Quick start

import { go } from "two-go";

await go("https://api.example.com")
  .get("/users")
  .bearer(token)
  .expectStatus(200)
  .expectJson("data[0].id", 1);
npm install two-go

Repositories

  • Two-Go is the core library: HTTP client, assertions, schema validation, an optional AI layer, and an MCP server so agents can drive it.
  • two-go-examples holds runnable end-to-end examples, including a BDD shop suite and a Docker Compose microservice tested against MySQL and MSSQL.
  • two-go-docs is the documentation site.
  • create-two-go scaffolds a new test project with npm create two-go.
  • two-go-action is a GitHub Action that installs dependencies and runs your two-go tests in CI.
  • two-go-vscode is a VS Code extension with snippets and helpers for writing two-go tests.
  • two-go-claude is a ready-to-use Claude Code skill and subagents for writing two-go tests.

MIT licensed. Maintained by @tugkanboz.

Pinned Loading

  1. Two-Go Two-Go Public

    Zero-dependency fluent API and service testing for Node.js: chainable HTTP, rich assertions, soft assertions, polling, snapshots, sessions, faker and a utility belt, plus an optional AI layer (test…

    JavaScript 3

  2. two-go-examples two-go-examples Public

    Runnable examples for two-go: built-in CLI, node:test, and microservice testing with Docker Compose (MySQL + MSSQL).

    JavaScript 1

  3. two-go-docs two-go-docs Public

    Documentation site for two-go

    1

  4. create-two-go create-two-go Public

    Scaffold a new two-go API test project: npm create two-go

    JavaScript 1

Repositories

Showing 9 of 9 repositories

Top languages

Loading…

Most used topics

Loading…