Skip to content

AI codegen

TIP

Optional peer — not part of the 1.0 stability bar. CI runs mock only (test:ai); there is no live-LLM job. See Roadmap.

Optional. Package: untestutils/ai. CLI shares one toolkit (fs + optional browser tools).

CLI / APIRole
untestutils ai / aiTestSpec from a prompt
untestutils convert / convertTestFileMigrate an existing file
untestutils fix / fixBrokenTestsRepair failing test (+ log / browser)
untestutils cover / coverMissingTestsAuthor missing e2e
bash
UNTESTUTILS_AI=1 untestutils fix tests/e2e/home.test.ts \
  --run "pnpm exec vitest run tests/e2e/home.test.ts" \
  --base-url http://127.0.0.1:3000
EnvMeaning
UNTESTUTILS_AI=1Allow live LLM on cache miss
UNTESTUTILS_AI_MOCK=1Mock for CI
UNTESTUTILS_AI_PROVIDERopenai | anthropic | google | xai
UNTESTUTILS_AI_MODELModel id

See API: AI · CLI.

Released under the MIT License.