@jest/test-result
Advanced tools
Comparing version 25.0.0 to 25.1.0
@@ -25,3 +25,3 @@ 'use strict'; | ||
if (i % 2) { | ||
ownKeys(source, true).forEach(function(key) { | ||
ownKeys(Object(source), true).forEach(function(key) { | ||
_defineProperty(target, key, source[key]); | ||
@@ -32,3 +32,3 @@ }); | ||
} else { | ||
ownKeys(source).forEach(function(key) { | ||
ownKeys(Object(source)).forEach(function(key) { | ||
Object.defineProperty( | ||
@@ -35,0 +35,0 @@ target, |
@@ -11,2 +11,3 @@ /** | ||
export declare const addResult: (aggregatedResults: AggregatedResult, testResult: TestResult) => void; | ||
export declare const createEmptyTestResult: () => TestResult; | ||
//# sourceMappingURL=helpers.d.ts.map |
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.addResult = exports.buildFailureTestResult = exports.makeEmptyAggregatedTestResult = void 0; | ||
exports.createEmptyTestResult = exports.addResult = exports.buildFailureTestResult = exports.makeEmptyAggregatedTestResult = void 0; | ||
@@ -155,1 +155,29 @@ /** | ||
exports.addResult = addResult; | ||
const createEmptyTestResult = () => ({ | ||
leaks: false, | ||
// That's legacy code, just adding it as needed for typing | ||
numFailingTests: 0, | ||
numPassingTests: 0, | ||
numPendingTests: 0, | ||
numTodoTests: 0, | ||
openHandles: [], | ||
perfStats: { | ||
end: 0, | ||
start: 0 | ||
}, | ||
skipped: false, | ||
snapshot: { | ||
added: 0, | ||
fileDeleted: false, | ||
matched: 0, | ||
unchecked: 0, | ||
uncheckedKeys: [], | ||
unmatched: 0, | ||
updated: 0 | ||
}, | ||
testFilePath: '', | ||
testResults: [] | ||
}); | ||
exports.createEmptyTestResult = createEmptyTestResult; |
@@ -8,4 +8,4 @@ /** | ||
export { default as formatTestResults } from './formatTestResults'; | ||
export { addResult, buildFailureTestResult, makeEmptyAggregatedTestResult, } from './helpers'; | ||
export { AggregatedResult, AssertionLocation, AssertionResult, FailedAssertion, Milliseconds, SerializableError, SnapshotSummary, Status, Suite, TestResult, } from './types'; | ||
export { addResult, buildFailureTestResult, createEmptyTestResult, makeEmptyAggregatedTestResult, } from './helpers'; | ||
export { AggregatedResult, AssertionLocation, AssertionResult, FailedAssertion, FormattedTestResults, Milliseconds, SerializableError, SnapshotSummary, Status, Suite, TestResult, V8CoverageResult, } from './types'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -24,2 +24,8 @@ 'use strict'; | ||
}); | ||
Object.defineProperty(exports, 'createEmptyTestResult', { | ||
enumerable: true, | ||
get: function() { | ||
return _helpers.createEmptyTestResult; | ||
} | ||
}); | ||
Object.defineProperty(exports, 'makeEmptyAggregatedTestResult', { | ||
@@ -55,2 +61,8 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, 'FormattedTestResults', { | ||
enumerable: true, | ||
get: function() { | ||
return _types.FormattedTestResults; | ||
} | ||
}); | ||
Object.defineProperty(exports, 'Milliseconds', { | ||
@@ -92,2 +104,8 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, 'V8CoverageResult', { | ||
enumerable: true, | ||
get: function() { | ||
return _types.V8CoverageResult; | ||
} | ||
}); | ||
@@ -94,0 +112,0 @@ var _formatTestResults = _interopRequireDefault(require('./formatTestResults')); |
@@ -10,2 +10,8 @@ /** | ||
import { Config } from '@jest/types'; | ||
import { V8Coverage } from 'collect-v8-coverage'; | ||
import { TransformResult } from '@jest/transform'; | ||
export declare type V8CoverageResult = Array<{ | ||
codeTransformResult: TransformResult | undefined; | ||
result: V8Coverage[number]; | ||
}>; | ||
export declare type SerializableError = { | ||
@@ -116,2 +122,3 @@ code?: unknown; | ||
testResults: Array<AssertionResult>; | ||
v8Coverage?: V8CoverageResult; | ||
}; | ||
@@ -118,0 +125,0 @@ export declare type FormattedTestResult = { |
{ | ||
"name": "@jest/test-result", | ||
"version": "25.0.0", | ||
"version": "25.1.0", | ||
"repository": { | ||
@@ -13,8 +13,10 @@ "type": "git", | ||
"dependencies": { | ||
"@jest/console": "^25.0.0", | ||
"@jest/types": "^25.0.0", | ||
"@types/istanbul-lib-coverage": "^2.0.0" | ||
"@jest/console": "^25.1.0", | ||
"@jest/transform": "^25.1.0", | ||
"@jest/types": "^25.1.0", | ||
"@types/istanbul-lib-coverage": "^2.0.0", | ||
"collect-v8-coverage": "^1.0.0" | ||
}, | ||
"engines": { | ||
"node": ">= 8" | ||
"node": ">= 8.3" | ||
}, | ||
@@ -24,3 +26,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "ff9269be05fd8316e95232198fce3463bf2f270e" | ||
"gitHead": "170eee11d03b0ed5c60077982fdbc3bafd403638" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
25301
586
5
1
+ Added@jest/transform@^25.1.0
+ Addedcollect-v8-coverage@^1.0.0
+ Added@ampproject/remapping@2.3.0(transitive)
+ Added@babel/compat-data@7.25.4(transitive)
+ Added@babel/core@7.25.2(transitive)
+ Added@babel/generator@7.25.6(transitive)
+ Added@babel/helper-compilation-targets@7.25.2(transitive)
+ Added@babel/helper-module-imports@7.24.7(transitive)
+ Added@babel/helper-module-transforms@7.25.2(transitive)
+ Added@babel/helper-plugin-utils@7.24.8(transitive)
+ Added@babel/helper-simple-access@7.24.7(transitive)
+ Added@babel/helper-string-parser@7.24.8(transitive)
+ Added@babel/helper-validator-option@7.24.8(transitive)
+ Added@babel/helpers@7.25.6(transitive)
+ Added@babel/parser@7.25.6(transitive)
+ Added@babel/template@7.25.0(transitive)
+ Added@babel/traverse@7.25.6(transitive)
+ Added@babel/types@7.25.6(transitive)
+ Added@cnakazawa/watch@1.0.4(transitive)
+ Added@istanbuljs/load-nyc-config@1.1.0(transitive)
+ Added@istanbuljs/schema@0.1.3(transitive)
+ Added@jest/transform@25.5.1(transitive)
+ Added@jridgewell/gen-mapping@0.3.5(transitive)
+ Added@jridgewell/resolve-uri@3.1.2(transitive)
+ Added@jridgewell/set-array@1.2.1(transitive)
+ Added@jridgewell/sourcemap-codec@1.5.0(transitive)
+ Added@jridgewell/trace-mapping@0.3.25(transitive)
+ Added@types/graceful-fs@4.1.9(transitive)
+ Added@types/node@22.5.4(transitive)
+ Addedanymatch@2.0.03.1.3(transitive)
+ Addedargparse@1.0.10(transitive)
+ Addedarr-diff@4.0.0(transitive)
+ Addedarr-flatten@1.1.0(transitive)
+ Addedarr-union@3.1.0(transitive)
+ Addedarray-unique@0.3.2(transitive)
+ Addedassign-symbols@1.0.0(transitive)
+ Addedatob@2.1.2(transitive)
+ Addedbabel-plugin-istanbul@6.1.1(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbase@0.11.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbraces@2.3.2(transitive)
+ Addedbrowserslist@4.23.3(transitive)
+ Addedbser@2.1.1(transitive)
+ Addedcache-base@1.0.1(transitive)
+ Addedcamelcase@5.3.1(transitive)
+ Addedcaniuse-lite@1.0.30001660(transitive)
+ Addedcapture-exit@2.0.0(transitive)
+ Addedclass-utils@0.3.6(transitive)
+ Addedcollect-v8-coverage@1.0.2(transitive)
+ Addedcollection-visit@1.0.0(transitive)
+ Addedcomponent-emitter@1.3.1(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedconvert-source-map@1.9.02.0.0(transitive)
+ Addedcopy-descriptor@0.1.1(transitive)
+ Addedcross-spawn@6.0.5(transitive)
+ Addeddebug@2.6.94.3.7(transitive)
+ Addeddecode-uri-component@0.2.2(transitive)
+ Addeddefine-property@0.2.51.0.02.0.2(transitive)
+ Addedelectron-to-chromium@1.5.20(transitive)
+ Addedend-of-stream@1.4.4(transitive)
+ Addedescalade@3.2.0(transitive)
+ Addedesprima@4.0.1(transitive)
+ Addedexec-sh@0.3.6(transitive)
+ Addedexeca@1.0.0(transitive)
+ Addedexpand-brackets@2.1.4(transitive)
+ Addedextend-shallow@2.0.13.0.2(transitive)
+ Addedextglob@2.0.4(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedfb-watchman@2.0.2(transitive)
+ Addedfill-range@4.0.0(transitive)
+ Addedfind-up@4.1.0(transitive)
+ Addedfor-in@1.0.2(transitive)
+ Addedfragment-cache@0.2.1(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedfsevents@2.3.3(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedgensync@1.0.0-beta.2(transitive)
+ Addedget-package-type@0.1.0(transitive)
+ Addedget-stream@4.1.0(transitive)
+ Addedget-value@2.0.6(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedglobals@11.12.0(transitive)
+ Addedhas-value@0.3.11.0.0(transitive)
+ Addedhas-values@0.1.41.0.0(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedimurmurhash@0.1.4(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedis-accessor-descriptor@1.0.1(transitive)
+ Addedis-buffer@1.1.6(transitive)
+ Addedis-data-descriptor@1.0.1(transitive)
+ Addedis-descriptor@0.1.71.0.3(transitive)
+ Addedis-extendable@0.1.11.0.1(transitive)
+ Addedis-number@3.0.0(transitive)
+ Addedis-plain-object@2.0.4(transitive)
+ Addedis-stream@1.1.0(transitive)
+ Addedis-typedarray@1.0.0(transitive)
+ Addedis-windows@1.0.2(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedisobject@2.1.03.0.1(transitive)
+ Addedistanbul-lib-coverage@3.2.2(transitive)
+ Addedistanbul-lib-instrument@5.2.1(transitive)
+ Addedjest-haste-map@25.5.1(transitive)
+ Addedjest-regex-util@25.2.6(transitive)
+ Addedjest-serializer@25.5.0(transitive)
+ Addedjest-worker@25.5.0(transitive)
+ Addedjs-yaml@3.14.1(transitive)
+ Addedjsesc@2.5.2(transitive)
+ Addedjson5@2.2.3(transitive)
+ Addedkind-of@3.2.24.0.06.0.3(transitive)
+ Addedlocate-path@5.0.0(transitive)
+ Addedlru-cache@5.1.1(transitive)
+ Addedmakeerror@1.0.12(transitive)
+ Addedmap-cache@0.2.2(transitive)
+ Addedmap-visit@1.0.0(transitive)
+ Addedmerge-stream@2.0.0(transitive)
+ Addedmicromatch@3.1.10(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmixin-deep@1.3.2(transitive)
+ Addedms@2.0.02.1.3(transitive)
+ Addednanomatch@1.2.13(transitive)
+ Addednice-try@1.0.5(transitive)
+ Addednode-int64@0.4.0(transitive)
+ Addednode-releases@2.0.18(transitive)
+ Addednormalize-path@2.1.13.0.0(transitive)
+ Addednpm-run-path@2.0.2(transitive)
+ Addedobject-copy@0.1.0(transitive)
+ Addedobject-visit@1.0.1(transitive)
+ Addedobject.pick@1.3.0(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedp-finally@1.0.0(transitive)
+ Addedp-limit@2.3.0(transitive)
+ Addedp-locate@4.1.0(transitive)
+ Addedp-try@2.2.0(transitive)
+ Addedpascalcase@0.1.1(transitive)
+ Addedpath-exists@4.0.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpath-key@2.0.1(transitive)
+ Addedpirates@4.0.6(transitive)
+ Addedposix-character-classes@0.1.1(transitive)
+ Addedpump@3.0.2(transitive)
+ Addedrealpath-native@2.0.0(transitive)
+ Addedregex-not@1.0.2(transitive)
+ Addedremove-trailing-separator@1.1.0(transitive)
+ Addedrepeat-element@1.1.4(transitive)
+ Addedrepeat-string@1.6.1(transitive)
+ Addedresolve-from@5.0.0(transitive)
+ Addedresolve-url@0.2.1(transitive)
+ Addedret@0.1.15(transitive)
+ Addedrsvp@4.8.5(transitive)
+ Addedsafe-regex@1.1.0(transitive)
+ Addedsane@4.1.0(transitive)
+ Addedsemver@5.7.2(transitive)
+ Addedset-value@2.0.1(transitive)
+ Addedshebang-command@1.2.0(transitive)
+ Addedshebang-regex@1.0.0(transitive)
+ Addedsignal-exit@3.0.7(transitive)
+ Addedsnapdragon@0.8.2(transitive)
+ Addedsnapdragon-node@2.1.1(transitive)
+ Addedsnapdragon-util@3.0.1(transitive)
+ Addedsource-map@0.5.70.6.1(transitive)
+ Addedsource-map-resolve@0.5.3(transitive)
+ Addedsource-map-url@0.4.1(transitive)
+ Addedsplit-string@3.1.0(transitive)
+ Addedsprintf-js@1.0.3(transitive)
+ Addedstatic-extend@0.1.2(transitive)
+ Addedstrip-eof@1.0.0(transitive)
+ Addedtest-exclude@6.0.0(transitive)
+ Addedtmpl@1.0.5(transitive)
+ Addedto-fast-properties@2.0.0(transitive)
+ Addedto-object-path@0.3.0(transitive)
+ Addedto-regex@3.0.2(transitive)
+ Addedto-regex-range@2.1.1(transitive)
+ Addedtypedarray-to-buffer@3.1.5(transitive)
+ Addedundici-types@6.19.8(transitive)
+ Addedunion-value@1.0.1(transitive)
+ Addedunset-value@1.0.0(transitive)
+ Addedupdate-browserslist-db@1.1.0(transitive)
+ Addedurix@0.1.0(transitive)
+ Addeduse@3.1.1(transitive)
+ Addedwalker@1.0.8(transitive)
+ Addedwhich@1.3.12.0.2(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedwrite-file-atomic@3.0.3(transitive)
+ Addedyallist@3.1.1(transitive)
Updated@jest/console@^25.1.0
Updated@jest/types@^25.1.0