@jest/reporters
Advanced tools
Comparing version 27.0.0-next.3 to 27.0.0-next.4
@@ -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" | ||
} |
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
101180
3057
Updatedjest-resolve@^27.0.0-next.4
Updatedjest-worker@^27.0.0-next.4