Skip to content

kindgi test

View as Markdown

Synopsis

Terminal window
kindgi test [--watch] [--reporter <name>] [--path <dir>] [-- <vitest-args>...]
Signature

Run the pack's tests via vitest. Ergonomic wrapper over vitest run.

Options

Option Default Description
--path <value> the current directory The pack root, with a kindgi.config.* and a vitest.config.* (.ts, .mts, .cts, .js, .mjs or .cjs). Default: the current directory.
--reporter <value> vitest's own reporter The vitest reporter to use (vitest's --reporter), e.g. verbose or json.
--watch off Run vitest in watch mode. By default the tests run once (vitest run).

Every command also takes the global flags.

Examples

From Write a guardrail:

Terminal window
pnpm exec kindgi test

See also