New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@jest/environment

Package Overview
Dependencies
Maintainers
5
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jest/environment - npm Package Compare versions

Comparing version 30.0.0-alpha.6 to 30.0.0-alpha.7

10

build/index.d.ts

@@ -198,2 +198,12 @@ /**

/**
* Registers a callback function that is invoked whenever a mock is generated for a module.
* This callback is passed the module name and the newly created mock object, and must return
* the (potentially modified) mock object.
*
* If multiple callbacks are registered, they will be called in the order they were added.
* Each callback receives the result of the previous callback as the `moduleMock` parameter,
* making it possible to apply sequential transformations.
*/
onGenerateMock<T>(cb: (moduleName: string, moduleMock: T) => T): Jest;
/**
* Replaces property on an object with another value.

@@ -200,0 +210,0 @@ *

10

package.json
{
"name": "@jest/environment",
"version": "30.0.0-alpha.6",
"version": "30.0.0-alpha.7",
"repository": {

@@ -20,6 +20,6 @@ "type": "git",

"dependencies": {
"@jest/fake-timers": "30.0.0-alpha.6",
"@jest/types": "30.0.0-alpha.6",
"@jest/fake-timers": "30.0.0-alpha.7",
"@jest/types": "30.0.0-alpha.7",
"@types/node": "*",
"jest-mock": "30.0.0-alpha.6"
"jest-mock": "30.0.0-alpha.7"
},

@@ -32,3 +32,3 @@ "engines": {

},
"gitHead": "ba74b7de1b9cca88daf33f9d1b46bfe2b7f485a5"
"gitHead": "bacb7de30d053cd87181294b0c8a8576632a8b02"
}
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