@jest/test-result
Advanced tools
Comparing version 25.2.4 to 25.2.6
@@ -7,7 +7,7 @@ /** | ||
*/ | ||
import type { AggregatedResult, SerializableError, TestResult } from './types'; | ||
import type { AggregatedResult, TestResult } from './types'; | ||
export declare const makeEmptyAggregatedTestResult: () => AggregatedResult; | ||
export declare const buildFailureTestResult: (testPath: string, err: SerializableError) => TestResult; | ||
export declare const buildFailureTestResult: (testPath: string, err: import("@jest/types/build/TestResult").SerializableError) => TestResult; | ||
export declare const addResult: (aggregatedResults: AggregatedResult, testResult: TestResult) => void; | ||
export declare const createEmptyTestResult: () => TestResult; | ||
//# sourceMappingURL=helpers.d.ts.map |
@@ -7,7 +7,7 @@ /** | ||
*/ | ||
import { AggregatedResult, SerializableError, TestResult } from './types'; | ||
import { AggregatedResult, TestResult } from './types'; | ||
export declare const makeEmptyAggregatedTestResult: () => AggregatedResult; | ||
export declare const buildFailureTestResult: (testPath: string, err: SerializableError) => TestResult; | ||
export declare const buildFailureTestResult: (testPath: string, err: import("@jest/types/build/TestResult").SerializableError) => TestResult; | ||
export declare const addResult: (aggregatedResults: AggregatedResult, testResult: TestResult) => void; | ||
export declare const createEmptyTestResult: () => TestResult; | ||
//# sourceMappingURL=helpers.d.ts.map |
@@ -9,15 +9,9 @@ /** | ||
import { ConsoleBuffer } from '@jest/console'; | ||
import { Config } from '@jest/types'; | ||
import { Config, TestResult, TransformTypes } from '@jest/types'; | ||
import { V8Coverage } from 'collect-v8-coverage'; | ||
import { TransformResult } from '@jest/transform'; | ||
export declare type V8CoverageResult = Array<{ | ||
codeTransformResult: TransformResult | undefined; | ||
codeTransformResult: TransformTypes.TransformResult | undefined; | ||
result: V8Coverage[number]; | ||
}>; | ||
export declare type SerializableError = { | ||
code?: unknown; | ||
message: string; | ||
stack: string | null | undefined; | ||
type?: string; | ||
}; | ||
export declare type SerializableError = TestResult.SerializableError; | ||
export declare type FailedAssertion = { | ||
@@ -38,28 +32,9 @@ matcherName?: string; | ||
}; | ||
export declare type Status = 'passed' | 'failed' | 'skipped' | 'pending' | 'todo' | 'disabled'; | ||
export declare type Status = AssertionResult['status']; | ||
export declare type Bytes = number; | ||
export declare type Milliseconds = number; | ||
declare type Callsite = { | ||
column: number; | ||
line: number; | ||
export declare type Milliseconds = TestResult.Milliseconds; | ||
export declare type AssertionResult = TestResult.AssertionResult; | ||
export declare type FormattedAssertionResult = Pick<AssertionResult, 'ancestorTitles' | 'fullName' | 'location' | 'status' | 'title'> & { | ||
failureMessages: AssertionResult['failureMessages'] | null; | ||
}; | ||
export declare type AssertionResult = { | ||
ancestorTitles: Array<string>; | ||
duration?: Milliseconds | null | undefined; | ||
failureMessages: Array<string>; | ||
fullName: string; | ||
invocations?: number; | ||
location: Callsite | null | undefined; | ||
numPassingAsserts: number; | ||
status: Status; | ||
title: string; | ||
}; | ||
export declare type FormattedAssertionResult = { | ||
ancestorTitles: Array<string>; | ||
failureMessages: Array<string> | null; | ||
fullName: string; | ||
location: Callsite | null | undefined; | ||
status: Status; | ||
title: string; | ||
}; | ||
export declare type AggregatedResultWithoutCoverage = { | ||
@@ -121,3 +96,3 @@ numFailedTests: number; | ||
testExecError?: SerializableError; | ||
testFilePath: string; | ||
testFilePath: Config.Path; | ||
testResults: Array<AssertionResult>; | ||
@@ -175,3 +150,2 @@ v8Coverage?: V8CoverageResult; | ||
}; | ||
export {}; | ||
//# sourceMappingURL=types.d.ts.map |
@@ -9,15 +9,9 @@ /** | ||
import type { ConsoleBuffer } from '@jest/console'; | ||
import type { Config } from '@jest/types'; | ||
import type { Config, TestResult, TransformTypes } from '@jest/types'; | ||
import type { V8Coverage } from 'collect-v8-coverage'; | ||
import type { TransformResult } from '@jest/transform'; | ||
export declare type V8CoverageResult = Array<{ | ||
codeTransformResult: TransformResult | undefined; | ||
codeTransformResult: TransformTypes.TransformResult | undefined; | ||
result: V8Coverage[number]; | ||
}>; | ||
export declare type SerializableError = { | ||
code?: unknown; | ||
message: string; | ||
stack: string | null | undefined; | ||
type?: string; | ||
}; | ||
export declare type SerializableError = TestResult.SerializableError; | ||
export declare type FailedAssertion = { | ||
@@ -38,28 +32,9 @@ matcherName?: string; | ||
}; | ||
export declare type Status = 'passed' | 'failed' | 'skipped' | 'pending' | 'todo' | 'disabled'; | ||
export declare type Status = AssertionResult['status']; | ||
export declare type Bytes = number; | ||
export declare type Milliseconds = number; | ||
declare type Callsite = { | ||
column: number; | ||
line: number; | ||
export declare type Milliseconds = TestResult.Milliseconds; | ||
export declare type AssertionResult = TestResult.AssertionResult; | ||
export declare type FormattedAssertionResult = Pick<AssertionResult, 'ancestorTitles' | 'fullName' | 'location' | 'status' | 'title'> & { | ||
failureMessages: AssertionResult['failureMessages'] | null; | ||
}; | ||
export declare type AssertionResult = { | ||
ancestorTitles: Array<string>; | ||
duration?: Milliseconds | null | undefined; | ||
failureMessages: Array<string>; | ||
fullName: string; | ||
invocations?: number; | ||
location: Callsite | null | undefined; | ||
numPassingAsserts: number; | ||
status: Status; | ||
title: string; | ||
}; | ||
export declare type FormattedAssertionResult = { | ||
ancestorTitles: Array<string>; | ||
failureMessages: Array<string> | null; | ||
fullName: string; | ||
location: Callsite | null | undefined; | ||
status: Status; | ||
title: string; | ||
}; | ||
export declare type AggregatedResultWithoutCoverage = { | ||
@@ -121,3 +96,3 @@ numFailedTests: number; | ||
testExecError?: SerializableError; | ||
testFilePath: string; | ||
testFilePath: Config.Path; | ||
testResults: Array<AssertionResult>; | ||
@@ -175,3 +150,2 @@ v8Coverage?: V8CoverageResult; | ||
}; | ||
export {}; | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "@jest/test-result", | ||
"version": "25.2.4", | ||
"version": "25.2.6", | ||
"repository": { | ||
@@ -20,5 +20,4 @@ "type": "git", | ||
"dependencies": { | ||
"@jest/console": "^25.2.3", | ||
"@jest/transform": "^25.2.4", | ||
"@jest/types": "^25.2.3", | ||
"@jest/console": "^25.2.6", | ||
"@jest/types": "^25.2.6", | ||
"@types/istanbul-lib-coverage": "^2.0.0", | ||
@@ -33,3 +32,3 @@ "collect-v8-coverage": "^1.0.0" | ||
}, | ||
"gitHead": "324938561c608e0e9dddc008e5dde1589d7abc68" | ||
"gitHead": "43207b743df164e9e58bd483dd9167b9084da18b" | ||
} |
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
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
4
29401
665
- Removed@jest/transform@^25.2.4
- Removed@ampproject/remapping@2.3.0(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-option@7.24.8(transitive)
- Removed@babel/helpers@7.25.6(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)
- Removed@cnakazawa/watch@1.0.4(transitive)
- Removed@istanbuljs/load-nyc-config@1.1.0(transitive)
- Removed@istanbuljs/schema@0.1.3(transitive)
- Removed@jest/transform@25.5.1(transitive)
- Removed@jridgewell/gen-mapping@0.3.5(transitive)
- Removed@jridgewell/resolve-uri@3.1.2(transitive)
- Removed@jridgewell/set-array@1.2.1(transitive)
- Removed@jridgewell/sourcemap-codec@1.5.0(transitive)
- Removed@jridgewell/trace-mapping@0.3.25(transitive)
- Removed@types/graceful-fs@4.1.9(transitive)
- Removed@types/node@22.5.5(transitive)
- Removedanymatch@2.0.03.1.3(transitive)
- Removedargparse@1.0.10(transitive)
- Removedarr-diff@4.0.0(transitive)
- Removedarr-flatten@1.1.0(transitive)
- Removedarr-union@3.1.0(transitive)
- Removedarray-unique@0.3.2(transitive)
- Removedassign-symbols@1.0.0(transitive)
- Removedatob@2.1.2(transitive)
- Removedbabel-plugin-istanbul@6.1.1(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbase@0.11.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbraces@2.3.2(transitive)
- Removedbrowserslist@4.23.3(transitive)
- Removedbser@2.1.1(transitive)
- Removedcache-base@1.0.1(transitive)
- Removedcamelcase@5.3.1(transitive)
- Removedcaniuse-lite@1.0.30001660(transitive)
- Removedcapture-exit@2.0.0(transitive)
- Removedclass-utils@0.3.6(transitive)
- Removedcollection-visit@1.0.0(transitive)
- Removedcomponent-emitter@1.3.1(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedconvert-source-map@1.9.02.0.0(transitive)
- Removedcopy-descriptor@0.1.1(transitive)
- Removedcross-spawn@6.0.5(transitive)
- Removeddebug@2.6.94.3.7(transitive)
- Removeddecode-uri-component@0.2.2(transitive)
- Removeddefine-property@0.2.51.0.02.0.2(transitive)
- Removedelectron-to-chromium@1.5.24(transitive)
- Removedend-of-stream@1.4.4(transitive)
- Removedescalade@3.2.0(transitive)
- Removedesprima@4.0.1(transitive)
- Removedexec-sh@0.3.6(transitive)
- Removedexeca@1.0.0(transitive)
- Removedexpand-brackets@2.1.4(transitive)
- Removedextend-shallow@2.0.13.0.2(transitive)
- Removedextglob@2.0.4(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedfb-watchman@2.0.2(transitive)
- Removedfill-range@4.0.0(transitive)
- Removedfind-up@4.1.0(transitive)
- Removedfor-in@1.0.2(transitive)
- Removedfragment-cache@0.2.1(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedfsevents@2.3.3(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedgensync@1.0.0-beta.2(transitive)
- Removedget-package-type@0.1.0(transitive)
- Removedget-stream@4.1.0(transitive)
- Removedget-value@2.0.6(transitive)
- Removedglob@7.2.3(transitive)
- Removedglobals@11.12.0(transitive)
- Removedhas-value@0.3.11.0.0(transitive)
- Removedhas-values@0.1.41.0.0(transitive)
- Removedhasown@2.0.2(transitive)
- Removedimurmurhash@0.1.4(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedis-accessor-descriptor@1.0.1(transitive)
- Removedis-buffer@1.1.6(transitive)
- Removedis-data-descriptor@1.0.1(transitive)
- Removedis-descriptor@0.1.71.0.3(transitive)
- Removedis-extendable@0.1.11.0.1(transitive)
- Removedis-number@3.0.0(transitive)
- Removedis-plain-object@2.0.4(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removedis-windows@1.0.2(transitive)
- Removedisarray@1.0.0(transitive)
- Removedisexe@2.0.0(transitive)
- Removedisobject@2.1.03.0.1(transitive)
- Removedistanbul-lib-coverage@3.2.2(transitive)
- Removedistanbul-lib-instrument@5.2.1(transitive)
- Removedjest-haste-map@25.5.1(transitive)
- Removedjest-regex-util@25.2.6(transitive)
- Removedjest-serializer@25.5.0(transitive)
- Removedjest-worker@25.5.0(transitive)
- Removedjs-yaml@3.14.1(transitive)
- Removedjsesc@2.5.2(transitive)
- Removedjson5@2.2.3(transitive)
- Removedkind-of@3.2.24.0.06.0.3(transitive)
- Removedlocate-path@5.0.0(transitive)
- Removedlru-cache@5.1.1(transitive)
- Removedmakeerror@1.0.12(transitive)
- Removedmap-cache@0.2.2(transitive)
- Removedmap-visit@1.0.0(transitive)
- Removedmerge-stream@2.0.0(transitive)
- Removedmicromatch@3.1.10(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmixin-deep@1.3.2(transitive)
- Removedms@2.0.02.1.3(transitive)
- Removednanomatch@1.2.13(transitive)
- Removednice-try@1.0.5(transitive)
- Removednode-int64@0.4.0(transitive)
- Removednode-releases@2.0.18(transitive)
- Removednormalize-path@2.1.13.0.0(transitive)
- Removednpm-run-path@2.0.2(transitive)
- Removedobject-copy@0.1.0(transitive)
- Removedobject-visit@1.0.1(transitive)
- Removedobject.pick@1.3.0(transitive)
- Removedonce@1.4.0(transitive)
- Removedp-finally@1.0.0(transitive)
- Removedp-limit@2.3.0(transitive)
- Removedp-locate@4.1.0(transitive)
- Removedp-try@2.2.0(transitive)
- Removedpascalcase@0.1.1(transitive)
- Removedpath-exists@4.0.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpath-key@2.0.1(transitive)
- Removedpirates@4.0.6(transitive)
- Removedposix-character-classes@0.1.1(transitive)
- Removedpump@3.0.2(transitive)
- Removedrealpath-native@2.0.0(transitive)
- Removedregex-not@1.0.2(transitive)
- Removedremove-trailing-separator@1.1.0(transitive)
- Removedrepeat-element@1.1.4(transitive)
- Removedrepeat-string@1.6.1(transitive)
- Removedresolve-from@5.0.0(transitive)
- Removedresolve-url@0.2.1(transitive)
- Removedret@0.1.15(transitive)
- Removedrsvp@4.8.5(transitive)
- Removedsafe-regex@1.1.0(transitive)
- Removedsane@4.1.0(transitive)
- Removedsemver@5.7.2(transitive)
- Removedset-value@2.0.1(transitive)
- Removedshebang-command@1.2.0(transitive)
- Removedshebang-regex@1.0.0(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedsnapdragon@0.8.2(transitive)
- Removedsnapdragon-node@2.1.1(transitive)
- Removedsnapdragon-util@3.0.1(transitive)
- Removedsource-map@0.5.70.6.1(transitive)
- Removedsource-map-resolve@0.5.3(transitive)
- Removedsource-map-url@0.4.1(transitive)
- Removedsplit-string@3.1.0(transitive)
- Removedsprintf-js@1.0.3(transitive)
- Removedstatic-extend@0.1.2(transitive)
- Removedstrip-eof@1.0.0(transitive)
- Removedtest-exclude@6.0.0(transitive)
- Removedtmpl@1.0.5(transitive)
- Removedto-fast-properties@2.0.0(transitive)
- Removedto-object-path@0.3.0(transitive)
- Removedto-regex@3.0.2(transitive)
- Removedto-regex-range@2.1.1(transitive)
- Removedtypedarray-to-buffer@3.1.5(transitive)
- Removedundici-types@6.19.8(transitive)
- Removedunion-value@1.0.1(transitive)
- Removedunset-value@1.0.0(transitive)
- Removedupdate-browserslist-db@1.1.0(transitive)
- Removedurix@0.1.0(transitive)
- Removeduse@3.1.1(transitive)
- Removedwalker@1.0.8(transitive)
- Removedwhich@1.3.12.0.2(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedwrite-file-atomic@3.0.3(transitive)
- Removedyallist@3.1.1(transitive)
Updated@jest/console@^25.2.6
Updated@jest/types@^25.2.6