Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jest/reporters

Package Overview
Dependencies
Maintainers
7
Versions
133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jest/reporters - npm Package Compare versions

Comparing version 27.0.0-next.3 to 27.0.0-next.4

2

build/CoverageWorker.d.ts

@@ -17,2 +17,2 @@ /**

export type { CoverageWorkerResult };
export declare function worker({ config, globalConfig, path, options, }: CoverageWorkerData): CoverageWorkerResult | null;
export declare function worker({ config, globalConfig, path, options, }: CoverageWorkerData): Promise<CoverageWorkerResult | null>;

@@ -18,3 +18,3 @@ /**

};
export default function (source: string, filename: Config.Path, globalConfig: Config.GlobalConfig, config: Config.ProjectConfig, changedFiles?: Set<Config.Path>, sourcesRelatedToTestsInChangedFiles?: Set<Config.Path>): CoverageWorkerResult | null;
export default function (source: string, filename: Config.Path, globalConfig: Config.GlobalConfig, config: Config.ProjectConfig, changedFiles?: Set<Config.Path>, sourcesRelatedToTestsInChangedFiles?: Set<Config.Path>): Promise<CoverageWorkerResult | null>;
export {};

@@ -96,3 +96,3 @@ 'use strict';

*/
function _default(
async function _default(
source,

@@ -138,16 +138,16 @@ filename,

};
} // Transform file with instrumentation to make sure initial coverage data is well mapped to original code.
}
const {code} = new (_transform().ScriptTransformer)(config).transformSource(
filename,
source,
{
instrument: true,
supportsDynamicImport: true,
supportsExportNamespaceFrom: true,
supportsStaticESM: true,
supportsTopLevelAwait: true
}
); // TODO: consider passing AST
const scriptTransformer = await (0, _transform().createScriptTransformer)(
config
); // Transform file with instrumentation to make sure initial coverage data is well mapped to original code.
const {code} = scriptTransformer.transformSource(filename, source, {
instrument: true,
supportsDynamicImport: true,
supportsExportNamespaceFrom: true,
supportsStaticESM: true,
supportsTopLevelAwait: true
}); // TODO: consider passing AST
const extracted = (0, _istanbulLibInstrument().readInitialCoverage)(code); // Check extracted initial coverage is not null, this can happen when using /* istanbul ignore file */

@@ -154,0 +154,0 @@

{
"name": "@jest/reporters",
"description": "Jest's reporters",
"version": "27.0.0-next.3",
"version": "27.0.0-next.4",
"main": "./build/index.js",

@@ -15,3 +15,3 @@ "types": "./build/index.d.ts",

"@jest/test-result": "^27.0.0-next.3",
"@jest/transform": "^27.0.0-next.3",
"@jest/transform": "^27.0.0-next.4",
"@jest/types": "^27.0.0-next.3",

@@ -28,6 +28,6 @@ "chalk": "^4.0.0",

"istanbul-reports": "^3.0.2",
"jest-haste-map": "^27.0.0-next.3",
"jest-resolve": "^27.0.0-next.3",
"jest-haste-map": "^27.0.0-next.4",
"jest-resolve": "^27.0.0-next.4",
"jest-util": "^27.0.0-next.3",
"jest-worker": "^27.0.0-next.3",
"jest-worker": "^27.0.0-next.4",
"slash": "^3.0.0",

@@ -77,3 +77,3 @@ "source-map": "^0.6.0",

},
"gitHead": "2e34f2cfaf9b6864c3ad4bdca05d3097d3108a41"
"gitHead": "941c414f0b757fdc619778c46c21fda26b3e5504"
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc