Socket
Socket
Sign inDemoInstall

@jest/globals

Package Overview
Dependencies
Maintainers
6
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jest/globals - npm Package Compare versions

Comparing version 29.0.0-alpha.5 to 29.0.0-alpha.6

22

build/index.d.ts

@@ -10,3 +10,3 @@ /**

import type { Global } from '@jest/types';
export declare const jest: Jest;
import type { ClassLike, FunctionLike, Mocked as JestMocked, MockedClass as JestMockedClass, MockedFunction as JestMockedFunction, MockedObject as JestMockedObject } from 'jest-mock';
export declare const expect: JestExpect;

@@ -25,1 +25,21 @@ export declare const it: Global.GlobalAdditions['it'];

export declare const afterAll: Global.GlobalAdditions['afterAll'];
declare const jest: Jest;
declare namespace jest {
/**
* Wraps a class, function or object type with Jest mock type definitions.
*/
type Mocked<T extends object> = JestMocked<T>;
/**
* Wraps a class type with Jest mock type definitions.
*/
type MockedClass<T extends ClassLike> = JestMockedClass<T>;
/**
* Wraps a function type with Jest mock type definitions.
*/
type MockedFunction<T extends FunctionLike> = JestMockedFunction<T>;
/**
* Wraps an object type with Jest mock type definitions.
*/
type MockedObject<T extends object> = JestMockedObject<T>;
}
export { jest };

@@ -9,4 +9,5 @@ 'use strict';

*/
// eslint-disable-next-line @typescript-eslint/no-namespace
throw new Error(
'Do not import `@jest/globals` outside of the Jest test environment'
);

11

package.json
{
"name": "@jest/globals",
"version": "29.0.0-alpha.5",
"version": "29.0.0-alpha.6",
"repository": {

@@ -23,5 +23,6 @@ "type": "git",

"dependencies": {
"@jest/environment": "^29.0.0-alpha.4",
"@jest/expect": "^29.0.0-alpha.5",
"@jest/types": "^29.0.0-alpha.4"
"@jest/environment": "^29.0.0-alpha.6",
"@jest/expect": "^29.0.0-alpha.6",
"@jest/types": "^29.0.0-alpha.6",
"jest-mock": "^29.0.0-alpha.6"
},

@@ -31,3 +32,3 @@ "publishConfig": {

},
"gitHead": "63e506b5d1558a9132a8fa65151407b0a40be3a5"
"gitHead": "4def94b073cad300e99de378ba900e6ba9b7032f"
}
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