@jest/types
Advanced tools
+56
-29
@@ -12,2 +12,3 @@ /** | ||
| import type {ForegroundColor} from 'chalk'; | ||
| import type * as ProcessModule from 'process'; | ||
| import type {ReportOptions} from 'istanbul-reports'; | ||
@@ -48,3 +49,2 @@ import type {SnapshotFormat} from '@jest/schemas'; | ||
| ignoreProjects: Array<string>; | ||
| init: boolean; | ||
| injectGlobals: boolean; | ||
@@ -93,3 +93,3 @@ json: boolean; | ||
| testPathIgnorePatterns: Array<string>; | ||
| testPathPattern: Array<string>; | ||
| testPathPatterns: Array<string>; | ||
| testRegex: string | Array<string>; | ||
@@ -121,2 +121,7 @@ testResultsProcessor: string; | ||
| duration?: number | null; | ||
| /** | ||
| * Whether [`test.failing()`](https://jestjs.io/docs/api#testfailingname-fn-timeout) | ||
| * was used. | ||
| */ | ||
| failing?: boolean; | ||
| failureDetails: Array<unknown>; | ||
@@ -219,3 +224,3 @@ failureMessages: Array<string>; | ||
| declare type BlockFn_2 = Global.BlockFn; | ||
| declare type BlockFn_2 = Global_2.BlockFn; | ||
@@ -226,7 +231,7 @@ declare type BlockMode = void | 'skip' | 'only' | 'todo'; | ||
| declare type BlockName_2 = Global.BlockName; | ||
| declare type BlockName_2 = Global_2.BlockName; | ||
| declare type BlockNameLike = BlockName | NameLike; | ||
| declare type BlockNameLike_2 = Global.BlockNameLike; | ||
| declare type BlockNameLike_2 = Global_2.BlockNameLike; | ||
@@ -282,3 +287,3 @@ declare type Callsite = { | ||
| declare type ConcurrentTestFn_2 = Global.ConcurrentTestFn; | ||
| declare type ConcurrentTestFn_2 = Global_2.ConcurrentTestFn; | ||
@@ -433,3 +438,3 @@ declare namespace Config { | ||
| declare type DoneFn = Global.DoneFn; | ||
| declare type DoneFn = Global_2.DoneFn; | ||
@@ -444,3 +449,5 @@ declare type DoneFn_2 = (reason?: string | Error) => void; | ||
| declare interface Each<EachFn extends TestFn | BlockFn> { | ||
| <T extends Record<string, unknown>>(table: ReadonlyArray<T>): ( | ||
| <T extends Record<string, unknown>>( | ||
| table: ReadonlyArray<T>, | ||
| ): ( | ||
| name: string | NameLike, | ||
@@ -450,8 +457,12 @@ fn: (arg: T, done: DoneFn_2) => ReturnType<EachFn>, | ||
| ) => void; | ||
| <T extends readonly [unknown, ...Array<unknown>]>(table: ReadonlyArray<T>): ( | ||
| <T extends readonly [unknown, ...Array<unknown>]>( | ||
| table: ReadonlyArray<T>, | ||
| ): ( | ||
| name: string | NameLike, | ||
| fn: (...args: T) => ReturnType<EachFn>, | ||
| fn: (...args: [...T]) => ReturnType<EachFn>, | ||
| timeout?: number, | ||
| ) => void; | ||
| <T extends ReadonlyArray<unknown>>(table: ReadonlyArray<T>): ( | ||
| <T extends ReadonlyArray<unknown>>( | ||
| table: ReadonlyArray<T>, | ||
| ): ( | ||
| name: string | NameLike, | ||
@@ -461,3 +472,5 @@ fn: (...args: T) => ReturnType<EachFn>, | ||
| ) => void; | ||
| <T>(table: ReadonlyArray<T>): ( | ||
| <T>( | ||
| table: ReadonlyArray<T>, | ||
| ): ( | ||
| name: string | NameLike, | ||
@@ -467,3 +480,6 @@ fn: (arg: T, done: DoneFn_2) => ReturnType<EachFn>, | ||
| ) => void; | ||
| <T = unknown>(strings: TemplateStringsArray, ...expressions: Array<T>): ( | ||
| <T = unknown>( | ||
| strings: TemplateStringsArray, | ||
| ...expressions: Array<T> | ||
| ): ( | ||
| name: string | NameLike, | ||
@@ -577,3 +593,3 @@ fn: (arg: Record<string, T>, done: DoneFn_2) => ReturnType<EachFn>, | ||
| declare namespace Global { | ||
| declare namespace Global_2 { | ||
| export { | ||
@@ -616,8 +632,8 @@ ValidTestReturnValues, | ||
| GlobalAdditions, | ||
| Global_2 as Global, | ||
| Global_3 as Global, | ||
| }; | ||
| } | ||
| export {Global}; | ||
| export {Global_2 as Global}; | ||
| declare interface Global_2 | ||
| declare interface Global_3 | ||
| extends GlobalAdditions, | ||
@@ -684,3 +700,3 @@ Omit<typeof globalThis, keyof GlobalAdditions> { | ||
| testNamePattern?: string; | ||
| testPathPattern: string; | ||
| testPathPatterns: Array<string>; | ||
| testResultsProcessor?: string; | ||
@@ -704,6 +720,5 @@ testSequencer: string; | ||
| declare type GlobalErrorHandlers = { | ||
| uncaughtException: Array<(exception: Exception) => void>; | ||
| unhandledRejection: Array< | ||
| (exception: Exception, promise: Promise<unknown>) => void | ||
| >; | ||
| rejectionHandled: Array<(promise: Promise<unknown>) => void>; | ||
| uncaughtException: Array<NodeJS.UncaughtExceptionListener>; | ||
| unhandledRejection: Array<NodeJS.UnhandledRejectionListener>; | ||
| }; | ||
@@ -761,3 +776,3 @@ | ||
| declare type HookFn_2 = Global.HookFn; | ||
| declare type HookFn_2 = Global_2.HookFn; | ||
@@ -913,3 +928,3 @@ declare type HookType = SharedHookType | 'afterEach' | 'beforeEach'; | ||
| declare interface JestGlobals extends Global.TestFrameworkGlobals { | ||
| declare interface JestGlobals extends Global_2.TestFrameworkGlobals { | ||
| expect: unknown; | ||
@@ -946,3 +961,3 @@ } | ||
| declare type Process = NodeJS.Process; | ||
| declare type Process = typeof ProcessModule; | ||
@@ -1055,2 +1070,3 @@ declare type ProjectConfig = { | ||
| maxConcurrency: number; | ||
| unhandledRejectionErrorByPromise: Map<Promise<unknown>, Exception>; | ||
| }; | ||
@@ -1099,2 +1115,7 @@ | ||
| error: Exception; | ||
| promise?: Promise<unknown>; | ||
| } | ||
| | { | ||
| name: 'error_handled'; | ||
| promise: Promise<unknown>; | ||
| }; | ||
@@ -1120,3 +1141,3 @@ | ||
| declare type TestContext_2 = Global.TestContext; | ||
| declare type TestContext_2 = Global_2.TestContext; | ||
@@ -1141,2 +1162,3 @@ declare type TestEntry = { | ||
| failing: boolean; | ||
| unhandledRejectionErrorByPromise: Map<Promise<unknown>, Exception>; | ||
| }; | ||
@@ -1151,3 +1173,3 @@ | ||
| declare type TestFn_2 = Global.TestFn; | ||
| declare type TestFn_2 = Global_2.TestFn; | ||
@@ -1175,7 +1197,7 @@ declare interface TestFrameworkGlobals { | ||
| declare type TestName_2 = Global.TestName; | ||
| declare type TestName_2 = Global_2.TestName; | ||
| declare type TestNameLike = TestName | NameLike; | ||
| declare type TestNameLike_2 = Global.TestNameLike; | ||
| declare type TestNameLike_2 = Global_2.TestNameLike; | ||
@@ -1193,2 +1215,7 @@ declare type TestNamesPath = Array<TestName_2 | BlockName_2>; | ||
| errorsDetailed: Array<MatcherResults | unknown>; | ||
| /** | ||
| * Whether [`test.failing()`](https://jestjs.io/docs/api#testfailingname-fn-timeout) | ||
| * was used. | ||
| */ | ||
| failing?: boolean; | ||
| invocations: number; | ||
@@ -1195,0 +1222,0 @@ status: TestStatus; |
+15
-1
@@ -1,1 +0,15 @@ | ||
| 'use strict'; | ||
| /*! | ||
| * /** | ||
| * * Copyright (c) Meta Platforms, Inc. and affiliates. | ||
| * * | ||
| * * This source code is licensed under the MIT license found in the | ||
| * * LICENSE file in the root directory of this source tree. | ||
| * * / | ||
| */ | ||
| /******/ (() => { // webpackBootstrap | ||
| /******/ "use strict"; | ||
| var __webpack_exports__ = {}; | ||
| module.exports = __webpack_exports__; | ||
| /******/ })() | ||
| ; |
+5
-5
| { | ||
| "name": "@jest/types", | ||
| "version": "29.6.3", | ||
| "version": "30.0.0-alpha.1", | ||
| "repository": { | ||
@@ -10,3 +10,3 @@ "type": "git", | ||
| "engines": { | ||
| "node": "^14.15.0 || ^16.10.0 || >=18.0.0" | ||
| "node": "^16.10.0 || ^18.12.0 || >=20.0.0" | ||
| }, | ||
@@ -24,3 +24,3 @@ "license": "MIT", | ||
| "dependencies": { | ||
| "@jest/schemas": "^29.6.3", | ||
| "@jest/schemas": "30.0.0-alpha.1", | ||
| "@types/istanbul-lib-coverage": "^2.0.0", | ||
@@ -34,3 +34,3 @@ "@types/istanbul-reports": "^3.0.0", | ||
| "@tsd/typescript": "^5.0.4", | ||
| "tsd-lite": "^0.7.0" | ||
| "tsd-lite": "^0.8.0" | ||
| }, | ||
@@ -40,3 +40,3 @@ "publishConfig": { | ||
| }, | ||
| "gitHead": "fb7d95c8af6e0d65a8b65348433d8a0ea0725b5b" | ||
| "gitHead": "d005cb2505c041583e0c5636d006e08666a54b63" | ||
| } |
+1
-1
@@ -23,3 +23,3 @@ # @jest/types | ||
| // jest.config.ts | ||
| import {Config} from '@jest/types'; | ||
| import type {Config} from '@jest/types'; | ||
@@ -26,0 +26,0 @@ const config: Config.InitialOptions = { |
| 'use strict'; |
| 'use strict'; |
| 'use strict'; |
| 'use strict'; |
| 'use strict'; |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
33696
3.01%1130
3.1%5
-50%2
100%+ Added
+ Added
- Removed
- Removed
Updated