FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test_runner: add ref methods to mocked timers by marco-ippolito · Pull Request #51809 · nodejs/node · GitHub

/ node Public

test_runner: add ref methods to mocked timers - #51809

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
marco-ippolito:feat/test-runner-mocks
Feb 26, 2024
Merged

test_runner: add ref methods to mocked timers#51809
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
marco-ippolito:feat/test-runner-mocks

Conversation

Copy link
Copy Markdown
Member

Fixes: #51701
It adds properties ref, unref, refresh, hasRef to mock timers for compatibility.

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/test_runner

nodejs-github-bot added needs-ci PRs that need a full CI run. test_runner Issues and PRs related to the test runner subsystem. labels Feb 19, 2024
marco-ippolito added the request-ci Add this label to start a Jenkins CI on a PR. label Feb 20, 2024
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Feb 20, 2024

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

MoLow added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Feb 20, 2024

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

marco-ippolito added the request-ci Add this label to start a Jenkins CI on a PR. label Feb 21, 2024
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Feb 21, 2024

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

What about adding tests that go over all properties so we won't have that problem again?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Do you meanb internal mock properties that are not part of the original Timeout object?

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

MoLow commented Feb 25, 2024

Copy link
Copy Markdown
Member

please rebase to include #51834

MoLow added the request-ci Add this label to start a Jenkins CI on a PR. label Feb 26, 2024
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Feb 26, 2024

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

MoLow added the commit-queue Add this label to land a pull request using GitHub Actions. label Feb 26, 2024
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Feb 26, 2024
nodejs-github-bot merged commit 6cb8a60 into nodejs:main Feb 26, 2024

Copy link
Copy Markdown
Collaborator

Landed in 6cb8a60

marco-ippolito added a commit that referenced this pull request Feb 27, 2024
Fixes: #51701
PR-URL: #51809
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Tierney Cyren <hello@bnb.im>
marco-ippolito mentioned this pull request Mar 1, 2024
richardlau pushed a commit that referenced this pull request Mar 25, 2024
Fixes: #51701
PR-URL: #51809
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Tierney Cyren <hello@bnb.im>
richardlau mentioned this pull request Mar 25, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. needs-ci PRs that need a full CI run. test_runner Issues and PRs related to the test runner subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MockTimers does not mock Timer properties

7 participants


Back | FazBrowse Home | New Git URL