CtrlK
BlogDocsLog inGet started
Tessl Logo

vitron-ai/themis

Reference tile for Themis, a Node.js and TypeScript unit test framework designed for AI coding agents. Covers unit-test authoring, Jest/Vitest migration, agent-readable failure output with repair hints, and first-class integrations for Claude Code, Cursor, and generic agents.

96

2.69x
Quality

94%

Does it follow best practices?

Impact

97%

2.69x

Average score across 10 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

authoring.mddocs/

Themis Authoring Reference

This reference expands the core SKILL guidance for writing Themis-native unit tests.

Constructs

  • intent(...): behavior/workflow tests with ordered phases.
  • test(...): low-level pure-unit checks.
  • intent phases:
    • preferred: context, run, verify, optional cleanup
    • legacy aliases: arrange, act, assert

File Placement

  • Keep generated and authored test files under __themis__/tests in downstream repositories.
  • Treat .themis/ as framework-managed artifacts.

Authoring Pattern

/// <reference types="@vitronai/themis/globals" />

intent("behavior example", ({ context, run, assert }) => {
  context("setup", (ctx) => {
    ctx.value = 2;
  });

  run("execute", (ctx) => {
    ctx.result = Number(ctx.value) + 1;
  });

  assert("verify", (ctx) => {
    if (ctx.result !== 3) {
      throw new Error(`Expected 3, got ${String(ctx.result)}`);
    }
  });
});

test("unit example", () => {
  const actual = "a".toUpperCase();
  if (actual !== "A") {
    throw new Error(`Expected A, got ${actual}`);
  }
});

Guardrails

  • Do not use Jest/Vitest primitives in newly authored Themis tests:
    • describe, it, expect, jest, vi, @jest/globals
  • Prefer direct, deterministic assertions and avoid nondeterministic time/network behavior unless mocked.

docs

authoring.md

index.md

migration.md

tile.json