test_runner: use validateStringArray for timers.enable()#49534
Conversation
|
Review requested:
|
| } | ||
|
|
||
| validateArray(timers, 'timers'); | ||
| validateStringArray(timers, 'timers'); |
There was a problem hiding this comment.
I assume this is semver-major, correct? If so, can you please take it as its own PR?
There was a problem hiding this comment.
@aduh95 the MockTimers is currently experimental, I don't think we have to mark this as
semver-major
Lines 1560 to 1568 in c86e700
There was a problem hiding this comment.
Actually I'm not sure this PR is semver-major or not. How about checking jenkins-ci's result according to below collaborator guide?
node/doc/contributing/collaborator-guide.md
Lines 901 to 908 in 7bf29b5
|
cc @ErickWendel PTAL when you are available. |
|
This needs a rebase. |
ba15590 to
40e1c33
Compare
|
@deokjinkim please do not add
request-ci
|
@lpinca I rebased this PR. Could you review again? |
aduh95
left a comment
There was a problem hiding this comment.
Can you add a test that's failing on main and passing on this branch please?
|
Landed in 4f94397 |
apiswhich is argument oftimers.enable()is string array. So usevalidatStringArrayinstead ofvalidateArray. Andoptionsis optional, so update JSDoc.In document, some default value of
timersare missed such assetImmediateandclearImmediate. Next,millisecondswhich is argument of `timers.tick() is optional and default is 1.