☕️ Classic, reliable, trusted test framework for Node.js and the browser
fix: remove `run` and use globalThis `setup` (#5592)
Brett Zamir1544c39dcd76
diff --git a/mocha.mjs b/mocha.mjsindex 0176f14d..4f11fca3 100644--- a/mocha.mjs+++ b/mocha.mjs@@ -12,8 +12,7 @@ const mochaExports = {context: (...args) => globalThis.context?.(...args),describe: (...args) => globalThis.describe?.(...args),it: (...args) => globalThis.it?.(...args),- run: mocha.run.bind(mocha),- setup: (...args) => mocha.setup?.(...args),+ setup: (...args) => globalThis.setup?.(...args),suite: (...args) => globalThis.suite?.(...args),suiteSetup: (...args) => globalThis.suiteSetup?.(...args),suiteTeardown: (...args) => globalThis.suiteTeardown?.(...args),