UNPKG

eslint-plugin-mocha

Version:

Eslint rules for mocha.

30 lines 1.63 kB
const mochaInterfaces = [ 'BDD', 'TDD', 'exports' ]; export function isMochaInterface(value) { return mochaInterfaces.includes(value); } export const configCallNames = ['timeout', 'slow', 'retries']; export const MODIFIERS = { pending: 'pending', exclusive: 'exclusive' }; export const builtinNames = [ { path: ['describe'], interface: 'BDD', type: 'suite', modifier: null, config: null }, { path: ['context'], interface: 'BDD', type: 'suite', modifier: null, config: null }, { path: ['suite'], interface: 'TDD', type: 'suite', modifier: null, config: null }, { path: ['it'], interface: 'BDD', type: 'testCase', modifier: null, config: null }, { path: ['specify'], interface: 'BDD', type: 'testCase', modifier: null, config: null }, { path: ['test'], interface: 'TDD', type: 'testCase', modifier: null, config: null }, { path: ['before'], interface: 'BDD', type: 'hook', modifier: null, config: null }, { path: ['after'], interface: 'BDD', type: 'hook', modifier: null, config: null }, { path: ['beforeEach'], interface: 'BDD', type: 'hook', modifier: null, config: null }, { path: ['afterEach'], interface: 'BDD', type: 'hook', modifier: null, config: null }, { path: ['suiteSetup'], interface: 'TDD', type: 'hook', modifier: null, config: null }, { path: ['suiteTeardown'], interface: 'TDD', type: 'hook', modifier: null, config: null }, { path: ['setup'], interface: 'TDD', type: 'hook', modifier: null, config: null }, { path: ['teardown'], interface: 'TDD', type: 'hook', modifier: null, config: null } ]; //# sourceMappingURL=descriptors.js.map