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
94%
Does it follow best practices?
Impact
97%
2.69xAverage score across 10 eval scenarios
Passed
No known issues
This reference expands the core SKILL guidance for writing Themis-native unit tests.
intent(...): behavior/workflow tests with ordered phases.test(...): low-level pure-unit checks.context, run, verify, optional cleanuparrange, act, assert__themis__/tests in downstream repositories..themis/ as framework-managed artifacts./// <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}`);
}
});describe, it, expect, jest, vi, @jest/globalsevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10
rules
skills
themis