Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion tests/run_all_deep_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import { execSync } from 'child_process';
import { readdirSync } from 'fs';
import { join } from 'path';

Check failure on line 7 in tests/run_all_deep_tests.ts

View workflow job for this annotation

GitHub Actions / Test and Lint (18.x)

'join' is defined but never used. Allowed unused vars must match /^_/u

Check failure on line 7 in tests/run_all_deep_tests.ts

View workflow job for this annotation

GitHub Actions / Test and Lint (22.x)

'join' is defined but never used. Allowed unused vars must match /^_/u

async function main() {
console.log('🏁 MeridianAlgo Deep Audit Master Runner\n');
Expand All @@ -16,11 +16,16 @@
for (const file of files) {
process.stdout.write(`🏃 Running ${file}... `);
try {
execSync(`npx ts-node tests/${file}`, { stdio: 'ignore' });
execSync(`npx ts-node tests/${file}`, { encoding: 'utf8' });
console.log('✅ PASSED');
passed++;
} catch (err) {
console.log('❌ FAILED');
const execErr = err as { stderr?: string | Buffer; stdout?: string | Buffer; message?: string };
const stderrOutput = execErr.stderr ? execErr.stderr.toString().trim() : '';
const stdoutOutput = execErr.stdout ? execErr.stdout.toString().trim() : '';
const details = stderrOutput || stdoutOutput || execErr.message || 'No error details available.';
console.log(details);
failed++;
}
}
Expand Down
Loading