File tree 2 files changed +1
-8
lines changed
lib/internal/test_runner/mock
2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -2226,7 +2226,7 @@ added:
2226
2226
- v18.19.0
2227
2227
-->
2228
2228
2229
- > Stability: 1 - Experimental
2229
+ > Stability: 2 - Stable
2230
2230
2231
2231
Mocking timers is a technique commonly used in software testing to simulate and
2232
2232
control the behavior of timers, such as ` setInterval ` and ` setTimeout ` ,
Original file line number Diff line number Diff line change @@ -27,9 +27,6 @@ const {
27
27
validateStringArray,
28
28
} = require ( 'internal/validators' ) ;
29
29
30
- const {
31
- emitExperimentalWarning,
32
- } = require ( 'internal/util' ) ;
33
30
const {
34
31
AbortError,
35
32
codes : {
@@ -133,10 +130,6 @@ class MockTimers {
133
130
#clearInterval = FunctionPrototypeBind ( this . #clearTimer, this ) ;
134
131
#clearImmediate = FunctionPrototypeBind ( this . #clearTimer, this ) ;
135
132
136
- constructor ( ) {
137
- emitExperimentalWarning ( 'The MockTimers API' ) ;
138
- }
139
-
140
133
#restoreSetImmediate( ) {
141
134
ObjectDefineProperty (
142
135
globalThis ,
You can’t perform that action at this time.
0 commit comments