diff --git a/doc/api/test.md b/doc/api/test.md index d7fbb5c69b9358..ca16d5b309c82a 100644 --- a/doc/api/test.md +++ b/doc/api/test.md @@ -2222,9 +2222,13 @@ set to `true`. added: - v20.4.0 - v18.19.0 +changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/55398 + description: The Mock Timers is now stable. --> -> Stability: 1 - Experimental +> Stability: 2 - Stable Mocking timers is a technique commonly used in software testing to simulate and control the behavior of timers, such as `setInterval` and `setTimeout`, diff --git a/lib/internal/test_runner/mock/mock_timers.js b/lib/internal/test_runner/mock/mock_timers.js index 935a419d83d0e4..66375c6688e038 100644 --- a/lib/internal/test_runner/mock/mock_timers.js +++ b/lib/internal/test_runner/mock/mock_timers.js @@ -27,9 +27,6 @@ const { validateStringArray, } = require('internal/validators'); -const { - emitExperimentalWarning, -} = require('internal/util'); const { AbortError, codes: { @@ -133,10 +130,6 @@ class MockTimers { #clearInterval = FunctionPrototypeBind(this.#clearTimer, this); #clearImmediate = FunctionPrototypeBind(this.#clearTimer, this); - constructor() { - emitExperimentalWarning('The MockTimers API'); - } - #restoreSetImmediate() { ObjectDefineProperty( globalThis,