UNPKG

scai

Version:

> AI-powered CLI tool for commit messages **and** pull request reviews — using local models.

12 lines (11 loc) 299 B
import { execSync } from 'child_process'; export function runJestTest(testFile) { try { execSync(`npx jest ${testFile} --silent`, { stdio: 'inherit' }); return true; } catch (err) { console.error(`❌ Tests failed for ${testFile}`); return false; } }