improve code quality and user experience

This commit is contained in:
Tw93
2025-10-16 12:10:08 +08:00
parent a2dacc574f
commit 0d3a3be9c7
8 changed files with 371 additions and 17 deletions

View File

@@ -12,6 +12,7 @@ import fs from "fs";
import path from "path";
import ora from "ora";
import config, { TIMEOUTS, TEST_URLS } from "./config.js";
import { runHelperTests } from "./unit/helpers.test.js";
class PakeTestRunner {
constructor() {
@@ -42,6 +43,12 @@ class PakeTestRunner {
console.log("📋 Running Unit Tests...");
await this.runUnitTests();
testCount++;
// Run helper function tests
const helperTestsPassed = await runHelperTests();
if (!helperTestsPassed) {
console.log("⚠️ Some helper tests failed");
}
}
if (integration && !quick) {