Socket
Socket
Sign inDemoInstall

@jest/environment

Package Overview
Dependencies
Maintainers
6
Versions
122
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 29.4.3 to 29.5.0

36

build/index.d.ts

@@ -32,2 +32,9 @@ /**

/**
* Advances all timers by `msToRun` milliseconds, firing callbacks if necessary.
*
* @remarks
* Not available when using legacy fake timers implementation.
*/
advanceTimersByTimeAsync(msToRun: number): Promise<void>;
/**
* Advances all timers by the needed milliseconds so that only the next

@@ -39,2 +46,11 @@ * timeouts/intervals will run. Optionally, you can provide steps, so it will

/**
* Advances the clock to the the moment of the first scheduled timer, firing it.
* Optionally, you can provide steps, so it will run steps amount of
* next timeouts/intervals.
*
* @remarks
* Not available when using legacy fake timers implementation.
*/
advanceTimersToNextTimerAsync(steps?: number): Promise<void>;
/**
* Disables automatic mocking in the module loader.

@@ -279,2 +295,12 @@ */

/**
* Exhausts the macro-task queue (i.e., all tasks queued by `setTimeout()`
* and `setInterval()`).
*
* @remarks
* If new timers are added while it is executing they will be run as well.
* @remarks
* Not available when using legacy fake timers implementation.
*/
runAllTimersAsync(): Promise<void>;
/**
* Executes only the macro-tasks that are currently pending (i.e., only the

@@ -287,2 +313,12 @@ * tasks that have been queued by `setTimeout()` or `setInterval()` up to this

/**
* Executes only the macro-tasks that are currently pending (i.e., only the
* tasks that have been queued by `setTimeout()` or `setInterval()` up to this
* point). If any of the currently pending macro-tasks schedule new
* macro-tasks, those new tasks will not be executed by this call.
*
* @remarks
* Not available when using legacy fake timers implementation.
*/
runOnlyPendingTimersAsync(): Promise<void>;
/**
* Explicitly supplies the mock object that the module system should return

@@ -289,0 +325,0 @@ * for the specified module.

10

package.json
{
"name": "@jest/environment",
"version": "29.4.3",
"version": "29.5.0",
"repository": {

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

"dependencies": {
"@jest/fake-timers": "^29.4.3",
"@jest/types": "^29.4.3",
"@jest/fake-timers": "^29.5.0",
"@jest/types": "^29.5.0",
"@types/node": "*",
"jest-mock": "^29.4.3"
"jest-mock": "^29.5.0"
},

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

},
"gitHead": "a49c88610e49a3242576160740a32a2fe11161e1"
"gitHead": "39f3beda6b396665bebffab94e8d7c45be30454c"
}
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