UNPKG

interface-ipfs-core

Version:

A test suite and interface you can use to implement a IPFS core interface.

34 lines 1.27 kB
/** * Get a "describe" function that is optionally 'skipped' or 'onlyed' * If skip/only are boolean true, or an object with a reason property, then we * want to skip/only the whole suite * * @param {object} [config] * @param {boolean | Skip | (string | Skip)[]} [config.skip] * @param {boolean} [config.only] */ export function getDescribe(config?: { skip?: boolean | Skip | (string | Skip)[] | undefined; only?: boolean | undefined; } | undefined): Mocha.PendingSuiteFunction; /** * Get an "it" function that is optionally 'skipped' or 'onlyed' * If skip/only is an array, then we _might_ want to skip/only the specific * test if one of the items in the array is the same as the test name or if one * of the items in the array is an object with a name property that is the same * as the test name. * * @param {object} [config] * @param {boolean | Skip | (string | Skip)[]} [config.skip] * @param {boolean} [config.only] * @returns {Mocha.TestFunction} */ export function getIt(config?: { skip?: boolean | Skip | (string | Skip)[] | undefined; only?: boolean | undefined; } | undefined): Mocha.TestFunction; export type Skip = { name?: string | undefined; reason?: string | undefined; }; //# sourceMappingURL=mocha.d.ts.map