metaltest/reporter/totalerrorreporter.js

17 lines
282 B
JavaScript

import { showError } from "./showError.js"
const totalerrorreporter = () => {
const testFails = []
const report = {
end: (stats) => testFails.push(...stats.testFail),
msg: () => {
showError(testFails)
},
}
return report
}
export { totalerrorreporter }