UNPKG

hackages

Version:

CLI tool for learning software development concepts through test-driven development

12 lines (11 loc) 431 B
import { runTests } from "../services/test-runner.js"; import { exerciseFilesExist } from "../services/file-manager.js"; import { printError } from "../utils/console.js"; export async function testCommand() { // Check if exercise files exist if (!exerciseFilesExist()) { printError("❌ No exercise found. Please run 'hackages generate' first to create an exercise."); return; } await runTests(); }