PrimeIntellect/SWE-rebench-V2-Filtered-Easy-Verified huggingface dataset:
Repository: lo1tuma/eslint-plugin-mocha (ts)
Issue: `no-synchronous-tests` rule not exposed
It seems that the new rule wasn't added to the `index.js` file.
Pull request description: add new rule to index.js and change tests to keep that from happening
Closes #27

Hopefully the test changes aren't disagreeable.  I think this is a good way to make sure `index.js` doesn't get missed.

Patch:
diff --git a/index.js b/index.js
index f8aeaab..af4cbdf 100644
--- a/index.js
+++ b/index.js
@@ -3,6 +3,7 @@
 module.exports = {
     rules: {
         'no-exclusive-tests': require('./lib/rules/no-exclusive-tests'),
-        'handle-done-callback': require('./lib/rules/handle-done-callback')
+        'handle-done-callback': require('./lib/rules/handle-done-callback'),
+        'no-synchronous-tests': require('./lib/rules/no-synchronous-tests')
     }
 };


Test patch:
diff --git a/test/rules/handle-done-callback.js b/test/rules/handle-done-callback.js
index c6f4a3d..a970d32 100644
--- a/test/rules/handle-done-callback.js
+++ b/test/rules/handle-done-callback.js
@@ -1,11 +1,11 @@
 'use strict';
 
 var RuleTester = require('eslint').RuleTester;
-var rule = require('../../lib/rules/handle-done-callback');
+var rules = require('../../').rules;
 
 var ruleTester = new RuleTester();
 
-ruleTester.run('handle-done-callback', rule, {
+ruleTester.run('handle-done-callback', rules['handle-done-callback'], {
     valid: [
         'foo(function (done) { });',
         'var foo = function (done) { };',
diff --git a/test/rules/no-exclusive-tests.js b/test/rules/no-exclusive-tests.js
index d15a84d..72171d2 100644
--- a/test/rules/no-exclusive-tests.js
+++ b/test/rules/no-exclusive-tests.js
@@ -1,13 +1,13 @@
 'use strict';
 
 var RuleTester = require('eslint').RuleTester;
-var rule = require('../../lib/rules/no-exclusive-tests');
+var rules = require('../../').rules;
 
 var ruleTester = new RuleTester();
 
 var expectedErrorMessage = 'Unexpected exclusive mocha test.';
 
-ruleTester.run('no-exclusive-tests', rule, {
+ruleTester.run('no-exclusive-tests', rules['no-exclusive-tests'], {
 
     valid: [
         'describe()',
diff --git a/test/rules/no-synchronous-tests.js b/test/rules/no-synchronous-tests.js
index b66b3bc..306a2f7 100644
--- a/test/rules/no-synchronous-tests.js
+++ b/test/rules/no-synchronous-tests.js
@@ -1,11 +1,11 @@
 'use strict';
 
 var RuleTester = require('eslint').RuleTester;
-var rule = require('../../lib/rules/no-synchronous-tests');
+var rules = require('../../').rules;
 
 var ruleTester = new RuleTester();
 
-ruleTester.run('no-synchronous-tests', rule, {
+ruleTester.run('no-synchronous-tests', rules['no-synchronous-tests'], {
     valid: [
         'it();',
         'it("");',