diff --git a/lib/internal/test_runner/reporter/dot.js b/lib/internal/test_runner/reporter/dot.js index 496c819d69ea07..183ccb09516238 100644 --- a/lib/internal/test_runner/reporter/dot.js +++ b/lib/internal/test_runner/reporter/dot.js @@ -1,15 +1,16 @@ 'use strict'; const { MathMax } = primordials; +const { red, green, clear } = require('././util/colors.js'); module.exports = async function* dot(source) { let count = 0; let columns = getLineLength(); for await (const { type } of source) { if (type === 'test:pass') { - yield '.'; + yield '${colors.green}.${colors.reset}'; } if (type === 'test:fail') { - yield 'X'; + yield '${colors.red}X${colors.reset}'; } if ((type === 'test:fail' || type === 'test:pass') && ++count === columns) { yield '\n';