-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_runner: introduces a new MockTimers API #47775
test_runner: introduces a new MockTimers API #47775
Commits on Apr 28, 2023
-
test_runner: add initial draft for fakeTimers
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 568ad96 - Browse repository at this point
Copy the full SHA 568ad96View commit details
Commits on May 1, 2023
-
test_runner: move fakerTimers to mock module
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ac0fab3 - Browse repository at this point
Copy the full SHA ac0fab3View commit details -
test_runner: change fakeTimers prop name
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e54a162 - Browse repository at this point
Copy the full SHA e54a162View commit details -
test_runner: implement PriorityQueue for timers
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 71ffd10 - Browse repository at this point
Copy the full SHA 71ffd10View commit details -
test_runner: add @ljharb suggestion
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a0f8afd - Browse repository at this point
Copy the full SHA a0f8afdView commit details -
test_runner: add @benjamingr suggestion
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0f55f65 - Browse repository at this point
Copy the full SHA 0f55f65View commit details -
test_runner: add fake setTimeout initial impl
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e34a426 - Browse repository at this point
Copy the full SHA e34a426View commit details -
test_runner: add @MoLow suggestion
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for df35174 - Browse repository at this point
Copy the full SHA df35174View commit details -
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e5af52f - Browse repository at this point
Copy the full SHA e5af52fView commit details
Commits on May 3, 2023
-
test_runner: rename from fakeTimers to mockTimers
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a22321f - Browse repository at this point
Copy the full SHA a22321fView commit details -
test_runner: add experimental warning
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 21be0bc - Browse repository at this point
Copy the full SHA 21be0bcView commit details -
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 102a830 - Browse repository at this point
Copy the full SHA 102a830View commit details -
test_runner: add @ljharb suggestion
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1d30e47 - Browse repository at this point
Copy the full SHA 1d30e47View commit details -
test_runner: fix possible truthy evaluation on tick by @ljharb
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0cb4e7c - Browse repository at this point
Copy the full SHA 0cb4e7cView commit details -
test_runner: add tests for clearTimeout
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a53aedc - Browse repository at this point
Copy the full SHA a53aedcView commit details -
test_runner: add tests for setInterval modules
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1a2cf34 - Browse repository at this point
Copy the full SHA 1a2cf34View commit details -
test_runner: add tests for clearInterval modules
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for db2a79f - Browse repository at this point
Copy the full SHA db2a79fView commit details
Commits on May 4, 2023
-
test_runner: add impl for timers.promises.setInterval function
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f200467 - Browse repository at this point
Copy the full SHA f200467View commit details -
test_runner: fix setInterval algorithm
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cc652fe - Browse repository at this point
Copy the full SHA cc652feView commit details
Commits on May 14, 2023
-
test_runner: add abortController support for promises.setTimeout and …
…more tests Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 942f504 - Browse repository at this point
Copy the full SHA 942f504View commit details -
test_runner: add test cases for abortController and remove listeners …
…after fullfuling results Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bb75287 - Browse repository at this point
Copy the full SHA bb75287View commit details
Commits on May 15, 2023
-
test_runner: change import order
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b0baf00 - Browse repository at this point
Copy the full SHA b0baf00View commit details -
test_runner: add ArrayPrototypeAt instead of [].at
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 92bf115 - Browse repository at this point
Copy the full SHA 92bf115View commit details -
test_runner: return safe asyncIterator
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1fe731e - Browse repository at this point
Copy the full SHA 1fe731eView commit details -
test_runner: make promises.setInterval update time during iterations
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 08f27ba - Browse repository at this point
Copy the full SHA 08f27baView commit details
Commits on May 19, 2023
-
test_runner: add __proto__ null while returning the object
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3e39782 - Browse repository at this point
Copy the full SHA 3e39782View commit details
Commits on May 30, 2023
-
test_runner: make promises.setInterval work with abortControllers
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a563ce9 - Browse repository at this point
Copy the full SHA a563ce9View commit details -
test_runner: rm unsafe array iteration and comments
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 17381f1 - Browse repository at this point
Copy the full SHA 17381f1View commit details -
test_runner: avoid avoid code repetition
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3677482 - Browse repository at this point
Copy the full SHA 3677482View commit details -
test_runner: (rollback) avoid avoid code repetition
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1825426 - Browse repository at this point
Copy the full SHA 1825426View commit details -
test_runner: rm unecessarly PromiseRejection
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for abc7c96 - Browse repository at this point
Copy the full SHA abc7c96View commit details
Commits on Jun 5, 2023
-
test_runner: add timers.reset on test postRun
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 87b0d36 - Browse repository at this point
Copy the full SHA 87b0d36View commit details -
test_runner: add config for choosing timers to use, error handling an…
…d refactoring Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a001e65 - Browse repository at this point
Copy the full SHA a001e65View commit details -
test_runner: implement releaseAllTimers function
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d168614 - Browse repository at this point
Copy the full SHA d168614View commit details -
test_runner: reach 100% code coverage
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1e09a22 - Browse repository at this point
Copy the full SHA 1e09a22View commit details
Commits on Jun 6, 2023
-
test_runner: rename function to runAll
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 89b489b - Browse repository at this point
Copy the full SHA 89b489bView commit details
Commits on Jun 8, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 2b64a4a - Browse repository at this point
Copy the full SHA 2b64a4aView commit details -
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a9ed28d - Browse repository at this point
Copy the full SHA a9ed28dView commit details -
check that timeout will only be called when reaches the specified tim…
…eout Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b383a1c - Browse repository at this point
Copy the full SHA b383a1cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ba725f4 - Browse repository at this point
Copy the full SHA ba725f4View commit details
Commits on Jun 12, 2023
-
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1bcbe65 - Browse repository at this point
Copy the full SHA 1bcbe65View commit details -
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7c65e64 - Browse repository at this point
Copy the full SHA 7c65e64View commit details -
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for aaf7070 - Browse repository at this point
Copy the full SHA aaf7070View commit details -
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ac9f5b6 - Browse repository at this point
Copy the full SHA ac9f5b6View commit details -
test_runner: add docs for timers.tick
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 13fab2b - Browse repository at this point
Copy the full SHA 13fab2bView commit details -
test_runner: add docs for timers.runAll
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 296f5b0 - Browse repository at this point
Copy the full SHA 296f5b0View commit details -
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a75ddb4 - Browse repository at this point
Copy the full SHA a75ddb4View commit details
Commits on Jun 13, 2023
-
Update test/parallel/test-runner-mock-timers.js
Co-authored-by: Moshe Atlow <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1bee321 - Browse repository at this point
Copy the full SHA 1bee321View commit details -
Update lib/internal/test_runner/mock/mock_timers.js
Co-authored-by: Jordan Harband <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bc8fea7 - Browse repository at this point
Copy the full SHA bc8fea7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1bfd7b8 - Browse repository at this point
Copy the full SHA 1bfd7b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for d2c9a1a - Browse repository at this point
Copy the full SHA d2c9a1aView commit details -
test_runner: add 50ms to .tick so setInterval will not be flaky
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 93950f5 - Browse repository at this point
Copy the full SHA 93950f5View commit details -
test_runner: revert last commit
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 49e8eba - Browse repository at this point
Copy the full SHA 49e8ebaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d3a45c - Browse repository at this point
Copy the full SHA 4d3a45cView commit details
Commits on Jun 14, 2023
-
Apply suggestions from code review
Co-authored-by: Tobias Nießen <[email protected]> Co-authored-by: Colin Ihrig <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 12772d1 - Browse repository at this point
Copy the full SHA 12772d1View commit details -
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5c9e425 - Browse repository at this point
Copy the full SHA 5c9e425View commit details -
add info about support for destructuring from modules
Signed-off-by: Erick Wendel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0424bf5 - Browse repository at this point
Copy the full SHA 0424bf5View commit details