Skip to content

Commit 97c6448

Browse files
ErickWendeladuh95
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 12d709b commit 97c6448

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

doc/api/test.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2224,7 +2224,7 @@ added:
22242224
- v18.19.0
22252225
-->
22262226

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

lib/internal/test_runner/mock/mock_timers.js

-7
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)