openpetswithchatandmcp/website/analyze-monster.ts
OpenPets Dev 65ac83849e Add 'website/' from commit '966aea480ffe1c340553aa878def30131d2af827'
git-subtree-dir: website
git-subtree-mainline: 8d3849caea
git-subtree-split: 966aea480f
2026-06-17 20:48:39 +00:00

18 lines
754 B
TypeScript
Executable file

import * as fs from 'fs';
const filePath = 'C:/ScriptoriumAI/scriptoriumai-ui/src/__tests__/Runboard.telemetry-lockstep-parity.test.tsx';
console.log('Reading file...');
const content = fs.readFileSync(filePath, 'utf8');
console.log('Length in characters:', content.length);
// Finding arrays/objects passed to mockResolvedValueOnce
const mockMatches = content.match(/\.mockResolvedValueOnce\(\{[\s\S]{1,50000}?\}\s+as any\)/g);
console.log('Found mock matches:', mockMatches ? mockMatches.length : 0);
const arrMatches = content.match(/\[\s*\{\s*run_id:[\s\S]*?\]/g);
if (arrMatches) {
let totalSize = 0;
arrMatches.forEach(m => totalSize += m.length);
console.log('Found large arrays:', arrMatches.length, 'Total size:', totalSize);
}