@proof-ui/console-plugin
Advanced tools
Comparing version 0.0.17-canary.f8c715b.0 to 0.0.17
@@ -21,5 +21,5 @@ "use strict"; | ||
const sortedTests = results.tests | ||
.filter((t) => t.time) | ||
.filter(t => t.time) | ||
.sort((t1, t2) => t2.time - t1.time); | ||
const { mean, median } = utils_1.stats(sortedTests, (t) => { var _a; return (_a = t.time) !== null && _a !== void 0 ? _a : 0; }); | ||
const { mean, median } = utils_1.stats(sortedTests, t => t.time || 0); | ||
const fastest = sortedTests[0]; | ||
@@ -40,3 +40,3 @@ const slowest = sortedTests[sortedTests.length - 1]; | ||
chalk_1.default.gray(`Mean time: ${formatTime(mean)}`), | ||
chalk_1.default.gray(`Median time: ${formatTime(median)}`), | ||
chalk_1.default.gray(`Median time: ${formatTime(median)}`) | ||
]; | ||
@@ -76,3 +76,3 @@ } | ||
logger_1.logger.error(chalk_1.default.red('Failures:')); | ||
results.tests.forEach((t) => { | ||
results.tests.forEach(t => { | ||
if (!t.error) { | ||
@@ -87,3 +87,3 @@ return; | ||
chalk_1.default.blue(`Ran ${results.total} tests in ${duration}`), | ||
...this.getTimeStats(results), | ||
...this.getTimeStats(results) | ||
].join('\n\t\t- ')); | ||
@@ -90,0 +90,0 @@ }); |
{ | ||
"name": "@proof-ui/console-plugin", | ||
"version": "0.0.17-canary.f8c715b.0", | ||
"version": "0.0.17", | ||
"main": "dist/main.js", | ||
@@ -22,7 +22,7 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@proof-ui/cli-plugin": "0.0.17-canary.f8c715b.0", | ||
"@proof-ui/core": "0.0.17-canary.f8c715b.0", | ||
"@proof-ui/cli-plugin": "^0.0.17", | ||
"@proof-ui/core": "^0.0.17", | ||
"typescript": "3.5.3" | ||
}, | ||
"gitHead": "f8c715bb453c7928e95b17c7c6ffb314a802386e" | ||
"gitHead": "9a70aa75d9ce88623b5eb6b50d8654c63c34d0c4" | ||
} |
Sorry, the diff of this file is not supported yet
12961
8