Skip to content

Conversation

@JoseLion
Copy link
Member

@JoseLion JoseLion commented Nov 24, 2025

Upgrades the Node.js version:

  • Use the latest Current on .nvmrc for development.
  • Drop support for all Node.js versions that have reached an end-of-life (EoL)
  • Update CI matrix to only run on the following Node.js versions: Maintenance LTS, Active LTS, and Current.

Additionally, this PR adds some minor changes/improvements:

  • Update the Node.js type definitions.
  • Added rimraf as a dev dependency to create a cross-platform clean script
  • Ensure all packages have a check script.

@JoseLion JoseLion self-assigned this Nov 24, 2025
"name": "@examples/mocha",
"private": true,
"scripts": {
"check": "yarn compile && yarn test --forbid-only",
Copy link

Choose a reason for hiding this comment

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

qq, what does the "--forbid-only" flag do?

Copy link
Member Author

Choose a reason for hiding this comment

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

@SbsCruz it causes the tests to fail if there's any it.only(..) tests. The .only method helps a lot during development, but it can inadvertently exclude tests on CI. That's why we add it to the check script 🙂

import { RootHookObject } from "mocha";

export function mochaHooks(): RootHookObject {
export function mochaHooks(): Mocha.RootHookObject {
Copy link

Choose a reason for hiding this comment

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

i see we are calling this object from Mocha now and not importing it, but why was the import deleted?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants