Skip to content

Commit 97c6448

Browse files
ErickWendeladuh95
authored andcommitted
test_runner: mark mockTimers as stable
PR-URL: #55398 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
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

Lines changed: 1 addition & 1 deletion
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

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy