UNPKG

testeranto

Version:

the AI powered BDD test framework for typescript projects

15 lines (14 loc) 458 B
import fs from "fs"; export default (r) => { return { name: "rebuild-notify", setup: (build) => { build.onEnd((result) => { console.log(`${r} > build ended with ${result.errors.length} errors`); if (result.errors.length > 0) { fs.writeFileSync(`./testeranto/reports${r}_build_errors`, JSON.stringify(result, null, 2)); } }); }, }; };