Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

import/require xit, fixes #2972

solodynamo1cc0fc0e6153
diff --git a/lib/mocha.js b/lib/mocha.js
index bfc0238d..ac8b9fca 100644
--- a/lib/mocha.js
+++ b/lib/mocha.js
@@ -204,6 +204,7 @@ Mocha.prototype.ui = function (name) {
exports.before = context.before || context.suiteSetup;
exports.describe = context.describe || context.suite;
exports.it = context.it || context.test;
+ exports.xit = context.xit || context.test.skip;
exports.setup = context.setup || context.beforeEach;
exports.suiteSetup = context.suiteSetup || context.before;
exports.suiteTeardown = context.suiteTeardown || context.after;