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

test_runner: fix t.assert methods by cjihrig · Pull Request #53049 · nodejs/node · GitHub

/ node Public

test_runner: fix t.assert methods - #53049

Merged
nodejs-github-bot merged 4 commits into
nodejs:mainfrom
cjihrig:fix-assert
May 20, 2024
Merged

test_runner: fix t.assert methods#53049
nodejs-github-bot merged 4 commits into
nodejs:mainfrom
cjihrig:fix-assert

Conversation

cjihrig commented May 18, 2024

Copy link
Copy Markdown
Contributor

The node:assert module contains several top level APIs that do not make sense to expose as methods on t.assert. Examples include AssertionError and CallTracker. This commit removes such APIs from t.assert.

This appears to have been lost in translation from cjihrig@89d9a7e to #52860.

Refs: #52860

The node:assert module contains several top level APIs that do
not make sense to expose as methods on t.assert. Examples include
AssertionError and CallTracker. This commit removes such APIs from
t.assert.

Refs: nodejs#52860

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 May 18, 2024
cjihrig requested review from MoLow and atlowChemi May 18, 2024 16:40

aduh95 left a comment

Copy link
Copy Markdown
Contributor

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

If you want to write the code in a way that is not affected by prototype mutation, you'd need to move some things around

Comment thread lib/internal/test_runner/test.js Outdated
cjihrig and others added 2 commits May 18, 2024 20:59
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>

cjihrig commented May 19, 2024

Copy link
Copy Markdown
Contributor Author

@aduh95 I have committed your suggestions directly. PTAL

cjihrig added the commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. label May 19, 2024

MoLow left a comment

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

LGTM, lint needs fixing

Comment thread lib/internal/test_runner/test.js Outdated
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
atlowChemi added the request-ci Add this label to start a Jenkins CI on a PR. label May 20, 2024
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label May 20, 2024

Copy link
Copy Markdown
Collaborator

MoLow added the commit-queue Add this label to land a pull request using GitHub Actions. label May 20, 2024
cjihrig added author ready PRs that have at least one approval, no outstanding review comments, and a CI started. and removed needs-ci PRs that need a full CI run. labels May 20, 2024
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label May 20, 2024
nodejs-github-bot merged commit f9a0913 into nodejs:main May 20, 2024

Copy link
Copy Markdown
Collaborator

Landed in f9a0913

cjihrig deleted the fix-assert branch May 20, 2024 17:15
targos pushed a commit that referenced this pull request May 21, 2024
The node:assert module contains several top level APIs that do
not make sense to expose as methods on t.assert. Examples include
AssertionError and CallTracker. This commit removes such APIs from
t.assert.

Refs: #52860
PR-URL: #53049
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
RafaelGSS mentioned this pull request Jun 7, 2024
soophoo pushed a commit to soophoo/node that referenced this pull request Jun 20, 2024
The node:assert module contains several top level APIs that do
not make sense to expose as methods on t.assert. Examples include
AssertionError and CallTracker. This commit removes such APIs from
t.assert.

Refs: nodejs#52860
PR-URL: nodejs#53049
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
marco-ippolito pushed a commit that referenced this pull request Jul 19, 2024
The node:assert module contains several top level APIs that do
not make sense to expose as methods on t.assert. Examples include
AssertionError and CallTracker. This commit removes such APIs from
t.assert.

Refs: #52860
PR-URL: #53049
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
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. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. test_runner Issues and PRs related to the test runner subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants


Back | FazBrowse Home | New Git URL