Socket
Socket
Sign inDemoInstall

@jest/test-result

Package Overview
Dependencies
Maintainers
7
Versions
111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jest/test-result - npm Package Compare versions

Comparing version 25.2.4 to 25.2.6

4

build/helpers.d.ts

@@ -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

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