Switch to double quotes and reformat codebase with Biome

This commit is contained in:
Mohamed Boudra
2026-03-21 20:22:15 +07:00
parent ab40786882
commit f6579dbeb4
805 changed files with 38132 additions and 40175 deletions
+26 -26
View File
@@ -8,46 +8,46 @@
* - paseo --help shows commands
*/
import { $ } from 'zx'
import { $ } from "zx";
$.verbose = false
$.verbose = false;
console.log('📋 Phase 1: Foundation Tests\n')
console.log("📋 Phase 1: Foundation Tests\n");
// Test 1.1: --version outputs version
console.log(' Testing paseo --version...')
const versionResult = await $`paseo --version`.nothrow()
console.log(" Testing paseo --version...");
const versionResult = await $`paseo --version`.nothrow();
if (versionResult.exitCode !== 0) {
console.error(' ❌ paseo --version failed with exit code', versionResult.exitCode)
console.error(' stderr:', versionResult.stderr)
process.exit(1)
console.error(" ❌ paseo --version failed with exit code", versionResult.exitCode);
console.error(" stderr:", versionResult.stderr);
process.exit(1);
}
const versionOutput = versionResult.stdout.trim()
const versionOutput = versionResult.stdout.trim();
if (!versionOutput.match(/\d+\.\d+\.\d+/)) {
console.error(' ❌ paseo --version output does not contain version number')
console.error(' output:', versionOutput)
process.exit(1)
console.error(" ❌ paseo --version output does not contain version number");
console.error(" output:", versionOutput);
process.exit(1);
}
console.log(' ✅ paseo --version outputs:', versionOutput)
console.log(" ✅ paseo --version outputs:", versionOutput);
// Test 1.2: --help shows commands
console.log(' Testing paseo --help...')
const helpResult = await $`paseo --help`.nothrow()
console.log(" Testing paseo --help...");
const helpResult = await $`paseo --help`.nothrow();
if (helpResult.exitCode !== 0) {
console.error(' ❌ paseo --help failed with exit code', helpResult.exitCode)
console.error(' stderr:', helpResult.stderr)
process.exit(1)
console.error(" ❌ paseo --help failed with exit code", helpResult.exitCode);
console.error(" stderr:", helpResult.stderr);
process.exit(1);
}
const helpOutput = helpResult.stdout
const helpOutput = helpResult.stdout;
// Check for expected sections in help output
const expectedTerms = ['agent', 'daemon', 'Usage', 'Options', 'Commands']
const missingTerms = expectedTerms.filter(term => !helpOutput.includes(term))
const expectedTerms = ["agent", "daemon", "Usage", "Options", "Commands"];
const missingTerms = expectedTerms.filter((term) => !helpOutput.includes(term));
if (missingTerms.length > 0) {
console.error(' ❌ paseo --help missing expected terms:', missingTerms.join(', '))
console.error(' output:', helpOutput)
process.exit(1)
console.error(" ❌ paseo --help missing expected terms:", missingTerms.join(", "));
console.error(" output:", helpOutput);
process.exit(1);
}
console.log(' ✅ paseo --help shows commands')
console.log(" ✅ paseo --help shows commands");
console.log('\n✅ Phase 1: Foundation Tests PASSED')
console.log("\n✅ Phase 1: Foundation Tests PASSED");