Skip to content

Commit 8e28aeb

Browse files
ErickWendelpull[bot]
authored andcommitted
test_runner: mark mockTimers as stable
PR-URL: #55398 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Jake Yuesong Li <[email protected]> Reviewed-By: Chemi Atlow <[email protected]>
1 parent ee5fb23 commit 8e28aeb

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

doc/api/test.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2226,7 +2226,7 @@ added:
22262226
- v18.19.0
22272227
-->
22282228

2229-
> Stability: 1 - Experimental
2229+
> Stability: 2 - Stable
22302230
22312231
Mocking timers is a technique commonly used in software testing to simulate and
22322232
control the behavior of timers, such as `setInterval` and `setTimeout`,

lib/internal/test_runner/mock/mock_timers.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ const {
2727
validateStringArray,
2828
} = require('internal/validators');
2929

30-
const {
31-
emitExperimentalWarning,
32-
} = require('internal/util');
3330
const {
3431
AbortError,
3532
codes: {
@@ -133,10 +130,6 @@ class MockTimers {
133130
#clearInterval = FunctionPrototypeBind(this.#clearTimer, this);
134131
#clearImmediate = FunctionPrototypeBind(this.#clearTimer, this);
135132

136-
constructor() {
137-
emitExperimentalWarning('The MockTimers API');
138-
}
139-
140133
#restoreSetImmediate() {
141134
ObjectDefineProperty(
142135
globalThis,

0 commit comments

Comments
 (0)