Skip to content

@types/qunit - make callback required in todo and skip test signatures#74982

Open
smassa-auditboard wants to merge 1 commit into
DefinitelyTyped:masterfrom
smassa-auditboard:smassa/qunit-todo-skip-callback-not-optional
Open

@types/qunit - make callback required in todo and skip test signatures#74982
smassa-auditboard wants to merge 1 commit into
DefinitelyTyped:masterfrom
smassa-auditboard:smassa/qunit-todo-skip-callback-not-optional

Conversation

@smassa-auditboard
Copy link
Copy Markdown

@smassa-auditboard smassa-auditboard commented May 11, 2026

Please fill in this template.

Select one of these and delete the others:

If adding a new definition:

  • The package does not already provide its own types, or cannot have its .d.ts files generated via --declaration
  • If this is for an npm package, match the name. If not, do not conflict with the name of an npm package.
  • Create it with dts-gen --dt, not by basing it on an existing project.
  • Represents shape of module/library correctly
  • tsconfig.json should have noImplicitAny, noImplicitThis, strictNullChecks, and strictFunctionTypes set to true.

If changing an existing definition:

  • Provide a URL to documentation or source code which provides context for the suggested changes: https://qunitjs.com/api/QUnit/test.todo/
  • If this PR brings the type definitions up to date with a new version of the JS library, update the version number in the package.json.

If removing a declaration:

  • If a package was never on Definitely Typed, you don't need to do anything. (If you wrote a package and provided types, you don't need to register it with us.)
  • Delete the package's directory.
  • Add it to notNeededPackages.json.

This reverts the core change of #71036, which made the callback argument to todo and skip tests optional. As far as I can tell, these were never optional in Qunit, but they at least aren't right now.

References

  • The PR to types that made callback optional.
  • The docs show it as required, with no changelog entry showing that has ever changed.
  • The library code that throws this exception has been this way for a lot longer than the PR that changed the types.

@typescript-bot typescript-bot moved this to Needs Author Action in Pull Request Status Board May 11, 2026
@smassa-auditboard smassa-auditboard marked this pull request as ready for review May 11, 2026 22:35
@typescript-bot
Copy link
Copy Markdown
Contributor

typescript-bot commented May 11, 2026

@smassa-auditboard 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 that I will keep updated.

1 package in this PR

Code Reviews

Because you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it.

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 type definition owners or DT maintainers

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": 74982,
  "author": "smassa-auditboard",
  "headCommitOid": "36a785f67c27d97c4d85494e596dda9d131e060d",
  "mergeBaseOid": "ab1bfafdacd9086b05cc51a01206895f2de1e1f8",
  "lastPushDate": "2026-05-11T19:49:24.000Z",
  "lastActivityDate": "2026-05-12T00:44:25.000Z",
  "hasMergeConflict": false,
  "isFirstContribution": true,
  "tooManyFiles": false,
  "hugeChange": false,
  "tooManyCommits": false,
  "tooManyReviews": false,
  "popularityLevel": "Popular",
  "pkgInfo": [
    {
      "name": "qunit",
      "kind": "edit",
      "files": [
        {
          "path": "types/qunit/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/qunit/test/global-test.ts",
          "kind": "test"
        },
        {
          "path": "types/qunit/test/module-test.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "waratuman",
        "sechel",
        "gitKrystan",
        "jamescdavis",
        "wagenet",
        "Krinkle"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Popular"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "NullVoxPopuli",
      "date": "2026-05-12T00:44:25.000Z",
      "isMaintainer": false
    }
  ],
  "mainBotCommentID": 4425717044,
  "ciResult": "pass"
}

@typescript-bot typescript-bot added the Popular package This PR affects a popular package (as counted by NPM download counts). label May 11, 2026
@typescript-bot
Copy link
Copy Markdown
Contributor

🔔 @waratuman @sechel @gitKrystan @jamescdavis @wagenet @Krinkle — 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 moved this from Needs Author Action to Waiting for Code Reviews in Pull Request Status Board May 11, 2026
Copy link
Copy Markdown
Contributor

@NullVoxPopuli NullVoxPopuli left a comment

Choose a reason for hiding this comment

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

lgtm

@typescript-bot typescript-bot added the Other Approved This PR was reviewed and signed-off by a community member. label May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Other Approved This PR was reviewed and signed-off by a community member. Popular package This PR affects a popular package (as counted by NPM download counts).

Projects

Status: Waiting for Code Reviews

Development

Successfully merging this pull request may close these issues.

3 participants