@jest/reporters
Advanced tools
Comparing version 26.0.0-alpha.0 to 26.0.0-alpha.1
@@ -18,2 +18,12 @@ 'use strict'; | ||
function _jestUtil() { | ||
const data = require('jest-util'); | ||
_jestUtil = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
var _utils = require('./utils'); | ||
@@ -74,3 +84,3 @@ | ||
if (runTime !== null && runTime > 5) { | ||
testDetail.push(LONG_TEST_COLOR(runTime + 's')); | ||
testDetail.push(LONG_TEST_COLOR((0, _jestUtil().formatTime)(runTime, 0))); | ||
} | ||
@@ -77,0 +87,0 @@ |
@@ -290,8 +290,8 @@ 'use strict'; | ||
estimatedTime && runTime >= estimatedTime + 1 | ||
? _chalk().default.bold.yellow(runTime + 's') | ||
: runTime + 's'; | ||
? _chalk().default.bold.yellow((0, _jestUtil().formatTime)(runTime, 0)) | ||
: (0, _jestUtil().formatTime)(runTime, 0); | ||
let time = _chalk().default.bold(`Time:`) + ` ${renderedTime}`; | ||
if (runTime < estimatedTime) { | ||
time += `, estimated ${estimatedTime}s`; | ||
time += `, estimated ${(0, _jestUtil().formatTime)(estimatedTime, 0)}`; | ||
} // Only show a progress bar if the test run is actually going to take | ||
@@ -298,0 +298,0 @@ // some time. |
@@ -148,3 +148,5 @@ 'use strict'; | ||
const time = test.duration ? ` (${test.duration.toFixed(0)}ms)` : ''; | ||
const time = test.duration | ||
? ` (${(0, _jestUtil().formatTime)(Math.round(test.duration))})` | ||
: ''; | ||
@@ -151,0 +153,0 @@ this._logLine( |
{ | ||
"name": "@jest/reporters", | ||
"description": "Jest's reporters", | ||
"version": "26.0.0-alpha.0", | ||
"version": "26.0.0-alpha.1", | ||
"main": "build/index.js", | ||
@@ -9,6 +9,6 @@ "types": "build/index.d.ts", | ||
"@bcoe/v8-coverage": "^0.2.3", | ||
"@jest/console": "^26.0.0-alpha.0", | ||
"@jest/test-result": "^26.0.0-alpha.0", | ||
"@jest/transform": "^26.0.0-alpha.0", | ||
"@jest/types": "^26.0.0-alpha.0", | ||
"@jest/console": "^26.0.0-alpha.1", | ||
"@jest/test-result": "^26.0.0-alpha.1", | ||
"@jest/transform": "^26.0.0-alpha.1", | ||
"@jest/types": "^26.0.0-alpha.1", | ||
"chalk": "^4.0.0", | ||
@@ -24,9 +24,9 @@ "collect-v8-coverage": "^1.0.0", | ||
"istanbul-reports": "^3.0.2", | ||
"jest-haste-map": "^26.0.0-alpha.0", | ||
"jest-resolve": "^26.0.0-alpha.0", | ||
"jest-util": "^26.0.0-alpha.0", | ||
"jest-haste-map": "^26.0.0-alpha.1", | ||
"jest-resolve": "^26.0.0-alpha.1", | ||
"jest-util": "^26.0.0-alpha.1", | ||
"jest-worker": "^26.0.0-alpha.0", | ||
"slash": "^3.0.0", | ||
"source-map": "^0.6.0", | ||
"string-length": "^3.1.0", | ||
"string-length": "^4.0.1", | ||
"terminal-link": "^2.0.0", | ||
@@ -49,3 +49,3 @@ "v8-to-istanbul": "^4.1.3" | ||
"optionalDependencies": { | ||
"node-notifier": "^6.0.0" | ||
"node-notifier": "^7.0.0" | ||
}, | ||
@@ -68,3 +68,3 @@ "engines": { | ||
}, | ||
"gitHead": "ba962e7e9669a4a2f723c2536c97462c8ddfff2d" | ||
"gitHead": "2bac04ffb8e533d12a072998da5c3751a41b796f" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
97886
2983
+ Added@babel/code-frame@7.25.7(transitive)
+ Added@babel/compat-data@7.25.7(transitive)
+ Added@babel/core@7.25.7(transitive)
+ Added@babel/generator@7.25.7(transitive)
+ Added@babel/helper-compilation-targets@7.25.7(transitive)
+ Added@babel/helper-module-imports@7.25.7(transitive)
+ Added@babel/helper-module-transforms@7.25.7(transitive)
+ Added@babel/helper-plugin-utils@7.25.7(transitive)
+ Added@babel/helper-simple-access@7.25.7(transitive)
+ Added@babel/helper-string-parser@7.25.7(transitive)
+ Added@babel/helper-validator-identifier@7.25.7(transitive)
+ Added@babel/helper-validator-option@7.25.7(transitive)
+ Added@babel/helpers@7.25.7(transitive)
+ Added@babel/highlight@7.25.7(transitive)
+ Added@babel/parser@7.25.7(transitive)
+ Added@babel/template@7.25.7(transitive)
+ Added@babel/traverse@7.25.7(transitive)
+ Added@babel/types@7.25.7(transitive)
+ Addedcaniuse-lite@1.0.30001667(transitive)
+ Addedchar-regex@1.0.2(transitive)
+ Addedelectron-to-chromium@1.5.32(transitive)
+ Addedjsesc@3.0.2(transitive)
+ Addednode-notifier@7.0.2(transitive)
+ Addedstring-length@4.0.2(transitive)
+ Addedstrip-ansi@6.0.1(transitive)
+ Addeduuid@8.3.2(transitive)
+ Addedwhich@2.0.2(transitive)
- Removed@babel/code-frame@7.24.7(transitive)
- Removed@babel/compat-data@7.25.4(transitive)
- Removed@babel/core@7.25.2(transitive)
- Removed@babel/generator@7.25.6(transitive)
- Removed@babel/helper-compilation-targets@7.25.2(transitive)
- Removed@babel/helper-module-imports@7.24.7(transitive)
- Removed@babel/helper-module-transforms@7.25.2(transitive)
- Removed@babel/helper-plugin-utils@7.24.8(transitive)
- Removed@babel/helper-simple-access@7.24.7(transitive)
- Removed@babel/helper-string-parser@7.24.8(transitive)
- Removed@babel/helper-validator-identifier@7.24.7(transitive)
- Removed@babel/helper-validator-option@7.24.8(transitive)
- Removed@babel/helpers@7.25.6(transitive)
- Removed@babel/highlight@7.24.7(transitive)
- Removed@babel/parser@7.25.6(transitive)
- Removed@babel/template@7.25.0(transitive)
- Removed@babel/traverse@7.25.6(transitive)
- Removed@babel/types@7.25.6(transitive)
- Removedansi-regex@4.1.1(transitive)
- Removedastral-regex@1.0.0(transitive)
- Removedcaniuse-lite@1.0.30001664(transitive)
- Removedelectron-to-chromium@1.5.29(transitive)
- Removedjsesc@2.5.2(transitive)
- Removednode-notifier@6.0.0(transitive)
- Removedstring-length@3.1.0(transitive)
- Removedstrip-ansi@5.2.0(transitive)
Updated@jest/types@^26.0.0-alpha.1
Updatedjest-resolve@^26.0.0-alpha.1
Updatedjest-util@^26.0.0-alpha.1
Updatedstring-length@^4.0.1