test_runner: add level parameter to reporter.diagnostic · nodejs/node@1eda87c

Original file line numberDiff line numberDiff line change

@@ -1235,7 +1235,7 @@ class Test extends AsyncResource {

12351235

if (actual < threshold) {

12361236

harness.success = false;

12371237

process.exitCode = kGenericUserError;

1238-

reporter.diagnostic(nesting, loc, `Error: ${NumberPrototypeToFixed(actual, 2)}% ${name} coverage does not meet threshold of ${threshold}%.`);

1238+

reporter.diagnostic(nesting, loc, `Error: ${NumberPrototypeToFixed(actual, 2)}% ${name} coverage does not meet threshold of ${threshold}%.`, 'error');

12391239

}

12401240

}

12411241