Skip to content
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

Put asserts on various assert* functions in chai. #68780

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

bmeurer
Copy link
Contributor

@bmeurer bmeurer commented Feb 27, 2024

Please fill in this template.

Select one of these and delete the others:

If changing an existing definition:

Why?

I'm testing the waters here to see how folks feel about these changes. We're using chai quite extensively in Chrome DevTools and the fact that assert functions don't play well with control flow based type narrowing is quite annoying (and we even ended up wrapping the asserts into otherwise useless helpers). We believe this should be solved here.

@typescript-bot
Copy link
Contributor

typescript-bot commented Feb 27, 2024

@bmeurer Thank you for submitting this PR! I see this is your first time submitting to DefinitelyTyped 👋 — I'm the local bot who will help you through the process of getting things through.

This is a live comment which I will keep updated.

1 package in this PR

Code Reviews

Because this is a widely-used package, a DT maintainer will need to review it before it can be merged.

You can test the changes of this PR in the Playground.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ✅ Most recent commit is approved by a DT maintainer

All of the items on the list are green. To merge, you need to post a comment including the string "Ready to merge" to bring in your changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 68780,
  "author": "bmeurer",
  "headCommitOid": "566728e4021d8b46f2d3bafb42a9812119256795",
  "mergeBaseOid": "22f4f44996fbf0d550ac70c977bef5377bacc938",
  "lastPushDate": "2024-02-27T15:10:19.000Z",
  "lastActivityDate": "2024-03-19T07:32:44.000Z",
  "mergeOfferDate": "2024-03-18T19:01:44.000Z",
  "mergeRequestDate": "2024-03-19T07:32:44.000Z",
  "mergeRequestUser": "bmeurer",
  "hasMergeConflict": false,
  "isFirstContribution": true,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Critical",
  "pkgInfo": [
    {
      "name": "chai",
      "kind": "edit",
      "files": [
        {
          "path": "types/chai/chai-tests.ts",
          "kind": "test"
        },
        {
          "path": "types/chai/index.d.ts",
          "kind": "definition"
        }
      ],
      "owners": [
        "Bartvds",
        "AGBrown",
        "olivr70",
        "mwistrand",
        "shaunluttin",
        "micksatana",
        "ErikSchierboom",
        "bparan",
        "CXuesong",
        "joeykilpatrick"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Critical"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "sheetalkamat",
      "date": "2024-03-18T19:00:56.000Z",
      "isMaintainer": true
    }
  ],
  "mainBotCommentID": 1966774437,
  "ciResult": "pass"
}

@typescript-bot
Copy link
Contributor

🔔 @Bartvds @AGBrown @olivr70 @mwistrand @shaunluttin @micksatana @ErikSchierboom @bparan @CXuesong @joeykilpatrick — please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

@typescript-bot typescript-bot added this to Waiting for Code Reviews in New Pull Request Status Board Feb 27, 2024
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Maintainer Review in New Pull Request Status Board Feb 27, 2024
@typescript-bot typescript-bot moved this from Needs Maintainer Review to Waiting for Code Reviews in New Pull Request Status Board Feb 27, 2024
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Maintainer Review in New Pull Request Status Board Feb 27, 2024
@typescript-bot typescript-bot added the Unreviewed No one showed up to review this PR, so it'll be reviewed by a DT maintainer. label Mar 9, 2024
@typescript-bot
Copy link
Contributor

Re-ping @Bartvds, @AGBrown, @olivr70, @mwistrand, @shaunluttin, @micksatana, @ErikSchierboom, @bparan, @CXuesong, @joeykilpatrick:

This PR has been out for over a week, yet I haven't seen any reviews.

Could someone please give it some attention? Thanks!

Copy link
Contributor

@weswigham weswigham left a comment

Choose a reason for hiding this comment

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

I think this is a good idea, but would like to give the actual type maintainers a bit more time to weigh in before I give this a merge. I'll probably stop by again later in the week, and if things are still silent from the pinged individuals, just merge it.

@bmeurer
Copy link
Contributor Author

bmeurer commented Mar 12, 2024

I think this is a good idea, but would like to give the actual type maintainers a bit more time to weigh in before I give this a merge. I'll probably stop by again later in the week, and if things are still silent from the pinged individuals, just merge it.

Thanks for the review. As mentioned, I'm mostly testing the waters here. Happy to expand this to cover more of the assert functions if you guys are okay with upstreaming this.

@typescript-bot typescript-bot moved this from Needs Maintainer Review to Needs Maintainer Action in New Pull Request Status Board Mar 16, 2024
@typescript-bot
Copy link
Contributor

It has been more than two weeks and this PR still has no reviews.

I'll bump it to the DT maintainer queue. Thank you for your patience, @bmeurer.

(Ping @Bartvds, @AGBrown, @olivr70, @mwistrand, @shaunluttin, @micksatana, @ErikSchierboom, @bparan, @CXuesong, @joeykilpatrick.)

@typescript-bot typescript-bot added Maintainer Approved Self Merge This PR can now be self-merged by the PR author or an owner and removed Unreviewed No one showed up to review this PR, so it'll be reviewed by a DT maintainer. labels Mar 18, 2024
@typescript-bot typescript-bot moved this from Needs Maintainer Action to Waiting for Author to Merge in New Pull Request Status Board Mar 18, 2024
@typescript-bot
Copy link
Contributor

@bmeurer: Everything looks good here. I am ready to merge this PR (at 566728e) on your behalf whenever you think it's ready.

If you'd like that to happen, please post a comment saying:

Ready to merge

and I'll merge this PR almost instantly. Thanks for helping out! ❤️

(@Bartvds, @AGBrown, @olivr70, @mwistrand, @shaunluttin, @micksatana, @ErikSchierboom, @bparan, @CXuesong, @joeykilpatrick: you can do this too.)

@bmeurer
Copy link
Contributor Author

bmeurer commented Mar 19, 2024

Ready to merge

@typescript-bot typescript-bot moved this from Waiting for Author to Merge to Recently Merged in New Pull Request Status Board Mar 19, 2024
@typescript-bot typescript-bot merged commit 70a2a85 into DefinitelyTyped:master Mar 19, 2024
4 checks passed
@typescript-bot typescript-bot removed this from Recently Merged in New Pull Request Status Board Mar 20, 2024
bmeurer added a commit to bmeurer/DefinitelyTyped that referenced this pull request Mar 20, 2024
…sert*` functions in cha…"

This reverts commit 70a2a85.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Critical package Maintainer Approved Self Merge This PR can now be self-merged by the PR author or an owner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants