8000 @wordpress/data-controls: Remove unneeded test. by rbuckton · Pull Request #50175 · DefinitelyTyped/DefinitelyTyped · GitHub
[go: up one dir, main page]

Skip to content

@wordpress/data-controls: Remove unneeded test. #50175

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

Merged
merged 1 commit into from
Dec 18, 2020
Merged

Conversation

rbuckton
Copy link
Collaborator

This removes a test from @wordpress/data-controls that doesn't test anything useful and is broken by microsoft/TypeScript#41348 because all of the variables created are now considered "implicitly any".

All of the functions tested are covered on the lines above this removed section, and all it is verifying is that the result of yield is any, which isn't very useful.

Please fill in this template.

This removes a test from `@wordpress/data-controls` that doesn't test anything useful and is broken by microsoft/TypeScript#41348 because all of the variables created are now considered "implicitly `any`".
@typescript-bot
Copy link
Contributor
typescript-bot commented Dec 18, 2020

@rbuckton Thank you for submitting this PR!

This is a live comment which I will keep updated.

1 package in this PR

Code Reviews

Because you edited one package and there were no type definition changes, I can help you merge this PR once someone else signs off on it.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ❌ Most recent commit is approved by type definition owners, DT maintainers or others

Once every item on this list is checked, I'll ask you for permission to merge and publish the changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 50175,
  "author": "rbuckton",
  "headCommitAbbrOid": "3c079a7",
  "headCommitOid": "3c079a75d43e1a31207791218b6ac02ed4a605c3",
  "lastPushDate": "2020-12-18T01:36:37.000Z",
  "lastActivityDate": "2020-12-18T01:38:12.000Z",
  "maintainerBlessed": false,
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "popularityLevel": "Well-liked by everyone",
  "pkgInfo": [
    {
      "name": "wordpress__data-controls",
      "kind": "edit",
      "files": [
        {
          "path": "types/wordpress__data-controls/wordpress__data-controls-tests.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "dsifford"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Well-liked by everyone"
    }
  ],
  "reviews": [],
  "ciResult": "pass"
}

@typescript-bot
Copy link
Contributor

🔔 @dsifford — 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
Copy link
Contributor

👋 Hi there! I’ve run some quick measurements against master and your PR. These metrics should help the humans reviewing this PR gauge whether it might negatively affect compile times or editor responsiveness for users who install these typings.

Let’s review the numbers, shall we?

Comparison details 📊
master #50175 diff
Batch compilation
Memory usage (MiB) 116.6 125.6 +7.7%
Type count 26079 26077 0%
Assignability cache size 6113 6112 0%
Language service
Samples taken 33 25 -24%
Identifiers in tests 33 25 -24%
getCompletionsAtPosition
    Mean duration (ms) 529.3 517.0 -2.3%
    Mean CV 10.8% 7.6%
    Worst duration (ms) 646.1 574.4 -11.1%
    Worst identifier select dispatch
getQuickInfoAtPosition
    Mean duration (ms) 527.4 522.8 -0.9%
    Mean CV 10.7% 8.1%
    Worst duration (ms) 591.6 617.1 +4.3%
    Worst identifier dispatch controls

It looks like nothing changed too much. I won’t post performance data again unless it gets worse.

@typescript-bot typescript-bot added the Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance. label Dec 18, 2020
@orta
Copy link
Collaborator
orta commented Dec 18, 2020

👍🏻

@orta orta merged commit 4c607e6 into master Dec 18, 2020
@jakebailey jakebailey deleted the remove-unneeded-test branch March 27, 2023 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0