About 50 results
Open links in new tab
  1. Mocha - the fun, simple, flexible JavaScript test framework

    Mocha validates any custom reporters or interfaces which were loaded via --require or otherwise; Mocha discovers test files; when given no files or directories, it finds files with extensions .js, …

  2. Mocha - Documentation

    Mar 6, 2011 · Disables implicit call to Mocha#loadFiles in Mocha#run. This setting is used by watch mode, parallel mode, and for loading ESM files.

  3. Mocha's API Documentation

    Mar 6, 2011 · Congratulations! You've found Mocha's API documentation. These docs are for developers who wish to: Create an extension for Mocha, or; Develop Mocha itself, or; Do …

  4. Array - Mocha

    100%. passes: 8 failures: 0 duration: 0.04s Array.push() should append a value 1ms ‣ var arr = []; arr.push('foo'); arr.push('bar'); expect(arr[0]).to.equal('foo ...

  5. mocha.js - Documentation

    */ Mocha.prototype.grep = function (re) { if (utils.isString(re)) { // extract args if it's regex-like, i.e: [string, pattern, flag] var arg = re.match(/^\/(.*)\/([gimy]{0,4})$|.*/); this.options.grep = new …

  6. Nyan - Documentation

    Constructs a new Nyan reporter instance.. Parameters: Name Type Attributes Description; runner: Runner: Instance triggers reporter actions.

  7. reporters/spec.js - Documentation

    */ exports = module.exports = Spec; /** * Constructs a new `Spec` reporter instance. * * @public * @class * @memberof Mocha.reporters * @extends Mocha.reporters.Base * @param …

  8. utils - Documentation

    Various utility functions used throughout Mocha's codebase. Source: utils.js, line 3; Members (static) inherits Source: utils.js, line 26; Inherit the prototype methods from one constructor into …

  9. Global - Documentation

    Option name for Mocha constructor (use exportName if omitted) validate: PluginValidator <optional> Validator function. finalize: PluginFinalizer <optional> Finalizer/aggregator function. …

  10. context.js - Documentation

    context.js 'use strict'; /** * @module Context */ /** * Expose `Context`. */ module.exports = Context; /** * Initialize a new `Context`. * * @private */ function ...

Refresh