UXInteract / task_002 /tests /validate_semantics.js
DojiSum's picture
Publish the current 141-task UXInteract release
ef987bb verified
Raw History Blame Contribute Delete
449 Bytes
const fs=require('fs'),path=require('path');
function walk(d){return fs.readdirSync(d,{withFileTypes:true}).filter(e=>!['tests','logs','node_modules','.git'].includes(e.name)).flatMap(e=>e.isDirectory()?walk(path.join(d,e.name)):[path.join(d,e.name)])}
if(!walk(process.cwd()).some(f=>/\.(html|svg|js|ts|tsx|jsx|md)$/i.test(f)))throw Error('missing candidate output');
console.log('candidate output present; requirements checked by runtime cases');