Skip to content

[@types/node] node:test describe/suite/test/it and their variants don't return Promise<void> anymore.#73062

Closed
alcuadrado wants to merge 1 commit intoDefinitelyTyped:masterfrom
alcuadrado:no-promises-in-node24-test-runner
Closed

[@types/node] node:test describe/suite/test/it and their variants don't return Promise<void> anymore.#73062
alcuadrado wants to merge 1 commit intoDefinitelyTyped:masterfrom
alcuadrado:no-promises-in-node24-test-runner

Conversation

@alcuadrado
Copy link
Copy Markdown

Hi,

This is my first PR into DefinitelyTyped. I hope I followed the instructions correctly. If not, please let me know.

This PR updates the definition of @types/node's node:test module. I believe this update is important, as it reflects a change introduced in Node 24. On top of that, this tests allows you to enable no-floating-promise in typescript-eslint for your tests.

Please fill in this template.

Select one of these and delete the others:

If changing an existing definition:

  • Provide a URL to documentation or source code which provides context for the suggested changes: <>
  • 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.

This change was announced with the release of Node.js 24.0.0: https://nodejs.org/en/blog/release/v24.0.0

[1a2eb15bc6] - (SEMVER-MAJOR) test_runner: remove promises returned by t.test() (Colin Ihrig) #56664
[96718268fe] - (SEMVER-MAJOR) test_runner: remove promises returned by test() (Colin Ihrig) #56664
[aa3523ec22] - (SEMVER-MAJOR) test_runner: automatically wait for subtests to finish (Colin Ihrig) #56664

@DangerBotOSS
Copy link
Copy Markdown

Formatting

The following files are not formatted:

  1. types/node/test/test.ts
  2. types/node/test.d.ts

Consider running pnpm dprint fmt on these files to make review easier.

Generated by 🚫 dangerJS against 8380435

@typescript-bot
Copy link
Copy Markdown
Contributor

typescript-bot commented Jun 18, 2025

@alcuadrado 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 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

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": 73062,
  "author": "alcuadrado",
  "headCommitOid": "83804358b548bc466626a05d38843f311b8de0b5",
  "mergeBaseOid": "b8294fd153083d1334ecb2b340be68687cef4cd5",
  "lastPushDate": "2025-06-18T23:34:29.000Z",
  "lastActivityDate": "2025-06-18T23:52:45.000Z",
  "hasMergeConflict": false,
  "isFirstContribution": true,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Critical",
  "pkgInfo": [
    {
      "name": "node",
      "kind": "edit",
      "files": [
        {
          "path": "types/node/test.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/test/test.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "Microsoft",
        "jkomyno",
        "alvis",
        "r3nya",
        "btoueg",
        "smac89",
        "touffy",
        "DeividasBakanas",
        "eyqs",
        "Hannes-Magnusson-CK",
        "hoo29",
        "kjin",
        "ajafff",
        "islishude",
        "mwiktorczyk",
        "mohsen1",
        "galkin",
        "parambirs",
        "eps1lon",
        "ThomasdenH",
        "WilcoBakker",
        "wwwy3y3",
        "samuela",
        "kuehlein",
        "bhongy",
        "chyzwar",
        "trivikr",
        "yoursunny",
        "qwelias",
        "ExE-Boss",
        "peterblazejewicz",
        "addaleax",
        "victorperin",
        "NodeJS",
        "LinusU",
        "wafuwafu13",
        "mcollina",
        "Semigradsky",
        "Renegade334"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Critical"
    }
  ],
  "reviews": [
    {
      "type": "changereq",
      "reviewer": "Renegade334",
      "date": "2025-06-18T23:52:45.000Z"
    }
  ],
  "mainBotCommentID": 2986063150,
  "ciResult": "pass"
}

@typescript-bot
Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown
Contributor

@Renegade334 Renegade334 left a comment

Choose a reason for hiding this comment

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

This change is pending rapid reversion (nodejs/node#58282) and has been omitted from @types/node for that reason.

@typescript-bot typescript-bot added the Revision needed This PR needs code changes before it can be merged. label Jun 18, 2025
@typescript-bot typescript-bot moved this from Needs Maintainer Review to Needs Author Action in Pull Request Status Board Jun 18, 2025
@typescript-bot
Copy link
Copy Markdown
Contributor

@alcuadrado One or more reviewers has requested changes. Please address their comments. I'll be back once they sign off or you've pushed new commits. Thank you!

@alcuadrado
Copy link
Copy Markdown
Author

Closing as that change was reverted :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Critical package Revision needed This PR needs code changes before it can be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants