{"record":{"id":"7dbdb129393e265f","repo":"mochajs/mocha","slug":"err-mocha-forbidden-exclusivity","errorCode":"ERR_MOCHA_FORBIDDEN_EXCLUSIVITY","errorMessage":"`.only` forbidden by --forbid-only (or \"`.only` is not supported in parallel mode\" in workers)","messagePattern":"`\\.only` forbidden by --forbid-only \\(or \"`\\.only` is not supported in parallel mode\" in workers\\)","errorType":"error_code","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"lib/interfaces/common.js","lineNumber":98,"sourceCode":"     *\n     * @param {string} name\n     * @param {Function} fn\n     */\n    afterEach: function (name, fn) {\n      return suites[0].afterEach(name, fn);\n    },\n\n    suite: {\n      /**\n       * Create an exclusive Suite; convenience function\n       * See docstring for create() below.\n       *\n       * @param {Object} opts\n       * @returns {Suite}\n       */\n      only: function only(opts) {\n        if (mocha.options.forbidOnly) {\n          throw createForbiddenExclusivityError(mocha);\n        }\n        opts.isOnly = true;\n        return this.create(opts);\n      },\n\n      /**\n       * Create a Suite, but skip it; convenience function\n       * See docstring for create() below.\n       *\n       * @param {Object} opts\n       * @returns {Suite}\n       */\n      skip: function skip(opts) {\n        opts.pending = true;\n        return this.create(opts);\n      },\n\n      /**","sourceCodeStart":80,"sourceCodeEnd":116,"githubUrl":"https://github.com/mochajs/mocha/blob/6bcbee4fd9a95351cedf0fdcb14c7d696486bc5a/lib/interfaces/common.js#L80-L116","documentation":"Error \"`.only` forbidden by --forbid-only (or \"`.only` is not supported in parallel mode\" in workers)\" thrown in mochajs/mocha.","triggerScenarios":"Thrown at lib/interfaces/common.js:98 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6bcbee4fd9a95351cedf0fdcb14c7d696486bc5a","analyzedAt":"2026-09-01T03:41:47.182Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}