Skip to content

Core overview

Install the core library when you want Suitener behavior inside another Bun/TypeScript tool.

Terminal window
bun add suitener-core

Import the public API:

import {
defineConfig,
generateStubs,
introspect,
loadConfig,
runTests,
wrap,
writeResults
} from "suitener-core";

Typical flow:

const project = await introspect("./backend");
const result = await runTests(project);
await writeResults(project, result);

If no test command or no test files exist, runTests(project) delegates to generateStubs(project).