Socket
Socket
Sign inDemoInstall

@jest/reporters

Package Overview
Dependencies
153
Maintainers
6
Versions
130
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 29.4.3 to 29.5.0

1

build/CoverageReporter.js

@@ -236,2 +236,3 @@ 'use strict';

worker = new (_jestWorker().Worker)(require.resolve('./CoverageWorker'), {
enableWorkerThreads: this._globalConfig.workerThreads,
exposedMethods: ['worker'],

@@ -238,0 +239,0 @@ forkOptions: {

@@ -240,4 +240,9 @@ /**

private readonly _globalConfig;
private readonly _summaryThreshold;
static readonly filename: string;
constructor(globalConfig: Config.GlobalConfig);
constructor(
globalConfig: Config.GlobalConfig,
options?: SummaryReporterOptions,
);
private _validateOptions;
private _write;

@@ -257,2 +262,6 @@ onRunStart(

export declare type SummaryReporterOptions = {
summaryThreshold?: number;
};
export {Test};

@@ -259,0 +268,0 @@

@@ -37,3 +37,2 @@ 'use strict';

const TEST_SUMMARY_THRESHOLD = 20;
const NPM_EVENTS = new Set([

@@ -70,8 +69,19 @@ 'prepublish',

_globalConfig;
_summaryThreshold;
static filename = __filename;
constructor(globalConfig) {
constructor(globalConfig, options) {
super();
this._globalConfig = globalConfig;
this._estimatedTime = 0;
this._validateOptions(options);
this._summaryThreshold = options?.summaryThreshold ?? 20;
}
_validateOptions(options) {
if (
options?.summaryThreshold &&
typeof options.summaryThreshold !== 'number'
) {
throw new TypeError('The option summaryThreshold should be a number');
}
}

@@ -170,3 +180,3 @@ // If we write more than one character at a time it is possible that

failedTests + runtimeErrors > 0 &&
aggregatedResults.numTotalTestSuites > TEST_SUMMARY_THRESHOLD
aggregatedResults.numTotalTestSuites > this._summaryThreshold
) {

@@ -173,0 +183,0 @@ this.log(_chalk().default.bold('Summary of all failing tests'));

22

package.json
{
"name": "@jest/reporters",
"description": "Jest's reporters",
"version": "29.4.3",
"version": "29.5.0",
"main": "./build/index.js",

@@ -16,6 +16,6 @@ "types": "./build/index.d.ts",

"@bcoe/v8-coverage": "^0.2.3",
"@jest/console": "^29.4.3",
"@jest/test-result": "^29.4.3",
"@jest/transform": "^29.4.3",
"@jest/types": "^29.4.3",
"@jest/console": "^29.5.0",
"@jest/test-result": "^29.5.0",
"@jest/transform": "^29.5.0",
"@jest/types": "^29.5.0",
"@jridgewell/trace-mapping": "^0.3.15",

@@ -33,5 +33,5 @@ "@types/node": "*",

"istanbul-reports": "^3.1.3",
"jest-message-util": "^29.4.3",
"jest-util": "^29.4.3",
"jest-worker": "^29.4.3",
"jest-message-util": "^29.5.0",
"jest-util": "^29.5.0",
"jest-worker": "^29.5.0",
"slash": "^3.0.0",

@@ -43,3 +43,3 @@ "string-length": "^4.0.1",

"devDependencies": {
"@jest/test-utils": "^29.4.3",
"@jest/test-utils": "^29.5.0",
"@tsd/typescript": "^4.9.0",

@@ -55,3 +55,3 @@ "@types/exit": "^0.1.30",

"@types/node-notifier": "^8.0.0",
"jest-resolve": "^29.4.3",
"jest-resolve": "^29.5.0",
"mock-fs": "^5.1.2",

@@ -85,3 +85,3 @@ "node-notifier": "^10.0.0",

},
"gitHead": "a49c88610e49a3242576160740a32a2fe11161e1"
"gitHead": "39f3beda6b396665bebffab94e8d7c45be30454c"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc