@jest/test-result
Advanced tools
Comparing version 27.0.1 to 27.0.2
@@ -9,2 +9,2 @@ /** | ||
export { addResult, buildFailureTestResult, createEmptyTestResult, makeEmptyAggregatedTestResult, } from './helpers'; | ||
export type { AggregatedResult, AssertionLocation, AssertionResult, FailedAssertion, FormattedTestResults, Milliseconds, RuntimeTransformResult, SerializableError, SnapshotSummary, Status, Suite, TestResult, TestCaseResult, V8CoverageResult, } from './types'; | ||
export type { AggregatedResult, AssertionLocation, AssertionResult, FailedAssertion, FormattedTestResults, Milliseconds, RuntimeTransformResult, SerializableError, SnapshotSummary, Status, Suite, Test, TestEvents, TestFileEvent, TestResult, TestCaseResult, V8CoverageResult, } from './types'; |
@@ -11,2 +11,4 @@ /** | ||
import type { Config, TestResult, TransformTypes } from '@jest/types'; | ||
import type { FS as HasteFS, ModuleMap } from 'jest-haste-map'; | ||
import type Resolver from 'jest-resolve'; | ||
export interface RuntimeTransformResult extends TransformTypes.TransformResult { | ||
@@ -151,1 +153,20 @@ wrapperLength: number; | ||
}; | ||
export declare type Test = { | ||
context: Context; | ||
duration?: number; | ||
path: Config.Path; | ||
}; | ||
declare type Context = { | ||
config: Config.ProjectConfig; | ||
hasteFS: HasteFS; | ||
moduleMap: ModuleMap; | ||
resolver: Resolver; | ||
}; | ||
export declare type TestEvents = { | ||
'test-file-start': [Test]; | ||
'test-file-success': [Test, TestResult]; | ||
'test-file-failure': [Test, SerializableError]; | ||
'test-case-result': [Config.Path, AssertionResult]; | ||
}; | ||
export declare type TestFileEvent<T extends keyof TestEvents = keyof TestEvents> = (eventName: T, args: TestEvents[T]) => unknown; | ||
export {}; |
{ | ||
"name": "@jest/test-result", | ||
"version": "27.0.1", | ||
"version": "27.0.2", | ||
"repository": { | ||
@@ -17,4 +17,4 @@ "type": "git", | ||
"dependencies": { | ||
"@jest/console": "^27.0.1", | ||
"@jest/types": "^27.0.1", | ||
"@jest/console": "^27.0.2", | ||
"@jest/types": "^27.0.2", | ||
"@types/istanbul-lib-coverage": "^2.0.0", | ||
@@ -29,3 +29,3 @@ "collect-v8-coverage": "^1.0.0" | ||
}, | ||
"gitHead": "2cb20e945a26b2c9867b30b787e81f6317e59aa1" | ||
"gitHead": "7ca8a22b8453e95c63842ee6aa4d8d8d8b4f9612" | ||
} |
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
16931
472
5
Updated@jest/console@^27.0.2
Updated@jest/types@^27.0.2