Write less test code. Get better coverage. Supernal Interface automatically generates type-safe tests from your tool definitions.
Every @Tool decorator automatically generates type-safe test scenarios from your tool definitions
@Tool({ description: 'Reset counter to zero' })
function resetCounter() {
setCount(0);
}
// Auto-generates:
// ✓ Test: "should reset counter to zero"
// ✓ Validates: function exists
// ✓ Validates: executes without error
// ✓ Validates: state changes correctlyWrite human-readable feature files that execute as automated tests
Feature: Counter Component
Scenario: Increment counter
Given the counter is at 0
When I increment the counter
Then the counter should be at 1
And the display should show "1"Automatically validate component state before and after tool execution
@Tool({
description: 'Set counter',
preConditions: ['counter exists'],
postConditions: ['counter value updated']
})
function setCounter(value: number) {
setCount(value);
}Track which tools are tested and identify gaps in your test suite
npm run test:coverage
Tool Coverage Report:
✓ resetCounter 100% (3/3 scenarios)
✓ increment 100% (2/2 scenarios)
⚠ decrement 66% (2/3 scenarios)
✗ complexAction 0% (0/1 scenarios)Add @Tool decorators to any function you want to make AI-controllable
Our CLI scans your code and generates type-safe test scenarios automatically
Run tests in CI/CD, get coverage reports, and catch regressions early
Get started with Supernal Interface and spend less time writing tests, more time shipping features.