Skip to content

Commit

Permalink
test_runner: mark mockTimers as stable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ErickWendel authored and nodejs-github-bot committed Oct 17, 2024
1 parent 142e405 commit f772040
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion doc/api/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -2226,7 +2226,7 @@ added:
- v18.19.0
-->

> 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`,
Expand Down
7 changes: 0 additions & 7 deletions lib/internal/test_runner/mock/mock_timers.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ const {
validateStringArray,
} = require('internal/validators');

const {
emitExperimentalWarning,
} = require('internal/util');
const {
AbortError,
codes: {
Expand Down Expand Up @@ -133,10 +130,6 @@ class MockTimers {
#clearInterval = FunctionPrototypeBind(this.#clearTimer, this);
#clearImmediate = FunctionPrototypeBind(this.#clearTimer, this);

constructor() {
emitExperimentalWarning('The MockTimers API');
}

#restoreSetImmediate() {
ObjectDefineProperty(
globalThis,
Expand Down

0 comments on commit f772040

Please sign in to comment.