Skip to content

Commit

Permalink
Unbreak Mocha under Node.js 22
Browse files Browse the repository at this point in the history
  • Loading branch information
rgrove committed Oct 25, 2024
1 parent 1abcae6 commit 9985b8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion .mocharc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict';

module.exports = {
delay: true,
enableSourceMaps: true,
reporter: 'dot',
spec: 'tests/{**,}/*.test.js',
Expand Down
7 changes: 4 additions & 3 deletions tests/conformance.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,10 @@ const specialEncodings = {
}
}
});

run(); // This is a Mocha global.
})();
})().catch(err => {
console.error(err);
process.exit(1);
});

// -- Helpers ------------------------------------------------------------------
function createTest(testRoot, test) {
Expand Down

0 comments on commit 9985b8a

Please sign in to comment.