Add table with reports results if there are more test runs

This commit is contained in:
Michal Dorner
2021-01-29 00:51:08 +01:00
parent 96e91aa726
commit c75a9dd8c8
7 changed files with 329 additions and 308 deletions

View File

@@ -38,3 +38,11 @@ export function ellipsis(text: string, maxLength: number): string {
return text.substr(0, maxLength - 3) + '...'
}
export function formatTime(ms: number) {
if (ms > 1000) {
return `${(ms / 1000).toFixed(3)}s`
}
return `${Math.round(ms)}ms`
}