@jest/environment
Advanced tools
Comparing version 29.4.3 to 29.5.0
@@ -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. |
{ | ||
"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" | ||
} |
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
15883
410
Updated@jest/fake-timers@^29.5.0
Updated@jest/types@^29.5.0
Updatedjest-mock@^29.5.0