cypress 3.1.4 → 3.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +54 -15
- package/lib/errors.js +89 -41
- package/lib/exec/open.js +4 -0
- package/lib/exec/spawn.js +98 -19
- package/lib/exec/xvfb.js +38 -10
- package/lib/tasks/download.js +16 -1
- package/lib/tasks/verify.js +92 -39
- package/lib/util.js +68 -3
- package/package.json +18 -33
- package/types/blob-util/LICENSE +21 -0
- package/types/blob-util/README.md +16 -0
- package/types/blob-util/index.d.ts +97 -0
- package/types/bluebird/LICENSE +21 -0
- package/types/bluebird/README.md +16 -0
- package/types/bluebird/index.d.ts +1315 -0
- package/types/chai/LICENSE +21 -0
- package/types/chai/README.md +16 -0
- package/types/chai/index.d.ts +1624 -0
- package/types/chai-jquery/LICENSE +21 -0
- package/types/chai-jquery/README.md +16 -0
- package/types/chai-jquery/index.d.ts +2587 -0
- package/types/{blob-util.d.ts → cy-blob-util.d.ts} +1 -1
- package/types/{bluebird.d.ts → cy-bluebird.d.ts} +1 -1
- package/types/{chai.d.ts → cy-chai.d.ts} +1 -2
- package/types/cy-minimatch.d.ts +96 -0
- package/types/cy-moment.d.ts +7 -0
- package/types/cypress-npm-api.d.ts +504 -0
- package/types/index.d.ts +403 -125
- package/types/jquery/LICENSE +21 -0
- package/types/jquery/README.md +16 -0
- package/types/jquery/index.d.ts +8560 -0
- package/types/lodash/LICENSE +21 -0
- package/types/lodash/README.md +16 -0
- package/types/lodash/add.d.ts +2 -0
- package/types/lodash/after.d.ts +2 -0
- package/types/lodash/ary.d.ts +2 -0
- package/types/lodash/assign.d.ts +2 -0
- package/types/lodash/assignIn.d.ts +2 -0
- package/types/lodash/assignInWith.d.ts +2 -0
- package/types/lodash/assignWith.d.ts +2 -0
- package/types/lodash/at.d.ts +2 -0
- package/types/lodash/attempt.d.ts +2 -0
- package/types/lodash/before.d.ts +2 -0
- package/types/lodash/bind.d.ts +2 -0
- package/types/lodash/bindAll.d.ts +2 -0
- package/types/lodash/bindKey.d.ts +2 -0
- package/types/lodash/camelCase.d.ts +2 -0
- package/types/lodash/capitalize.d.ts +2 -0
- package/types/lodash/castArray.d.ts +2 -0
- package/types/lodash/ceil.d.ts +2 -0
- package/types/lodash/chain.d.ts +2 -0
- package/types/lodash/chunk.d.ts +2 -0
- package/types/lodash/clamp.d.ts +2 -0
- package/types/lodash/clone.d.ts +2 -0
- package/types/lodash/cloneDeep.d.ts +2 -0
- package/types/lodash/cloneDeepWith.d.ts +2 -0
- package/types/lodash/cloneWith.d.ts +2 -0
- package/types/lodash/common/array.d.ts +3708 -0
- package/types/lodash/common/collection.d.ts +2575 -0
- package/types/lodash/common/common.d.ts +270 -0
- package/types/lodash/common/date.d.ts +27 -0
- package/types/lodash/common/function.d.ts +1489 -0
- package/types/lodash/common/lang.d.ts +1936 -0
- package/types/lodash/common/math.d.ts +532 -0
- package/types/lodash/common/number.d.ts +178 -0
- package/types/lodash/common/object.d.ts +3905 -0
- package/types/lodash/common/seq.d.ts +196 -0
- package/types/lodash/common/string.d.ts +1059 -0
- package/types/lodash/common/util.d.ts +1463 -0
- package/types/lodash/compact.d.ts +2 -0
- package/types/lodash/concat.d.ts +2 -0
- package/types/lodash/cond.d.ts +2 -0
- package/types/lodash/conformsTo.d.ts +2 -0
- package/types/lodash/constant.d.ts +2 -0
- package/types/lodash/countBy.d.ts +2 -0
- package/types/lodash/create.d.ts +2 -0
- package/types/lodash/curry.d.ts +2 -0
- package/types/lodash/curryRight.d.ts +2 -0
- package/types/lodash/debounce.d.ts +2 -0
- package/types/lodash/deburr.d.ts +2 -0
- package/types/lodash/defaultTo.d.ts +2 -0
- package/types/lodash/defaults.d.ts +2 -0
- package/types/lodash/defaultsDeep.d.ts +2 -0
- package/types/lodash/defer.d.ts +2 -0
- package/types/lodash/delay.d.ts +2 -0
- package/types/lodash/difference.d.ts +2 -0
- package/types/lodash/differenceBy.d.ts +2 -0
- package/types/lodash/differenceWith.d.ts +2 -0
- package/types/lodash/divide.d.ts +2 -0
- package/types/lodash/drop.d.ts +2 -0
- package/types/lodash/dropRight.d.ts +2 -0
- package/types/lodash/dropRightWhile.d.ts +2 -0
- package/types/lodash/dropWhile.d.ts +2 -0
- package/types/lodash/each.d.ts +2 -0
- package/types/lodash/eachRight.d.ts +2 -0
- package/types/lodash/endsWith.d.ts +2 -0
- package/types/lodash/entries.d.ts +2 -0
- package/types/lodash/entriesIn.d.ts +2 -0
- package/types/lodash/eq.d.ts +2 -0
- package/types/lodash/escape.d.ts +2 -0
- package/types/lodash/escapeRegExp.d.ts +2 -0
- package/types/lodash/every.d.ts +2 -0
- package/types/lodash/extend.d.ts +2 -0
- package/types/lodash/extendWith.d.ts +2 -0
- package/types/lodash/fill.d.ts +2 -0
- package/types/lodash/filter.d.ts +2 -0
- package/types/lodash/find.d.ts +2 -0
- package/types/lodash/findIndex.d.ts +2 -0
- package/types/lodash/findKey.d.ts +2 -0
- package/types/lodash/findLast.d.ts +2 -0
- package/types/lodash/findLastIndex.d.ts +2 -0
- package/types/lodash/findLastKey.d.ts +2 -0
- package/types/lodash/first.d.ts +2 -0
- package/types/lodash/flatMap.d.ts +2 -0
- package/types/lodash/flatMapDeep.d.ts +2 -0
- package/types/lodash/flatMapDepth.d.ts +2 -0
- package/types/lodash/flatten.d.ts +2 -0
- package/types/lodash/flattenDeep.d.ts +2 -0
- package/types/lodash/flattenDepth.d.ts +2 -0
- package/types/lodash/flip.d.ts +2 -0
- package/types/lodash/floor.d.ts +2 -0
- package/types/lodash/flow.d.ts +2 -0
- package/types/lodash/flowRight.d.ts +2 -0
- package/types/lodash/forEach.d.ts +2 -0
- package/types/lodash/forEachRight.d.ts +2 -0
- package/types/lodash/forIn.d.ts +2 -0
- package/types/lodash/forInRight.d.ts +2 -0
- package/types/lodash/forOwn.d.ts +2 -0
- package/types/lodash/forOwnRight.d.ts +2 -0
- package/types/lodash/fp/F.d.ts +2 -0
- package/types/lodash/fp/T.d.ts +2 -0
- package/types/lodash/fp/__.d.ts +3 -0
- package/types/lodash/fp/add.d.ts +2 -0
- package/types/lodash/fp/after.d.ts +2 -0
- package/types/lodash/fp/all.d.ts +2 -0
- package/types/lodash/fp/allPass.d.ts +2 -0
- package/types/lodash/fp/always.d.ts +2 -0
- package/types/lodash/fp/any.d.ts +2 -0
- package/types/lodash/fp/anyPass.d.ts +2 -0
- package/types/lodash/fp/apply.d.ts +2 -0
- package/types/lodash/fp/ary.d.ts +2 -0
- package/types/lodash/fp/assign.d.ts +2 -0
- package/types/lodash/fp/assignAll.d.ts +2 -0
- package/types/lodash/fp/assignAllWith.d.ts +2 -0
- package/types/lodash/fp/assignIn.d.ts +2 -0
- package/types/lodash/fp/assignInAll.d.ts +2 -0
- package/types/lodash/fp/assignInAllWith.d.ts +2 -0
- package/types/lodash/fp/assignInWith.d.ts +2 -0
- package/types/lodash/fp/assignWith.d.ts +2 -0
- package/types/lodash/fp/assoc.d.ts +2 -0
- package/types/lodash/fp/assocPath.d.ts +2 -0
- package/types/lodash/fp/at.d.ts +2 -0
- package/types/lodash/fp/attempt.d.ts +2 -0
- package/types/lodash/fp/before.d.ts +2 -0
- package/types/lodash/fp/bind.d.ts +2 -0
- package/types/lodash/fp/bindAll.d.ts +2 -0
- package/types/lodash/fp/bindKey.d.ts +2 -0
- package/types/lodash/fp/camelCase.d.ts +2 -0
- package/types/lodash/fp/capitalize.d.ts +2 -0
- package/types/lodash/fp/castArray.d.ts +2 -0
- package/types/lodash/fp/ceil.d.ts +2 -0
- package/types/lodash/fp/chunk.d.ts +2 -0
- package/types/lodash/fp/clamp.d.ts +2 -0
- package/types/lodash/fp/clone.d.ts +2 -0
- package/types/lodash/fp/cloneDeep.d.ts +2 -0
- package/types/lodash/fp/cloneDeepWith.d.ts +2 -0
- package/types/lodash/fp/cloneWith.d.ts +2 -0
- package/types/lodash/fp/compact.d.ts +2 -0
- package/types/lodash/fp/complement.d.ts +2 -0
- package/types/lodash/fp/compose.d.ts +2 -0
- package/types/lodash/fp/concat.d.ts +2 -0
- package/types/lodash/fp/cond.d.ts +2 -0
- package/types/lodash/fp/conforms.d.ts +2 -0
- package/types/lodash/fp/conformsTo.d.ts +2 -0
- package/types/lodash/fp/constant.d.ts +2 -0
- package/types/lodash/fp/contains.d.ts +2 -0
- package/types/lodash/fp/convert.d.ts +15 -0
- package/types/lodash/fp/countBy.d.ts +2 -0
- package/types/lodash/fp/create.d.ts +2 -0
- package/types/lodash/fp/curry.d.ts +2 -0
- package/types/lodash/fp/curryN.d.ts +2 -0
- package/types/lodash/fp/curryRight.d.ts +2 -0
- package/types/lodash/fp/curryRightN.d.ts +2 -0
- package/types/lodash/fp/debounce.d.ts +2 -0
- package/types/lodash/fp/deburr.d.ts +2 -0
- package/types/lodash/fp/defaultTo.d.ts +2 -0
- package/types/lodash/fp/defaults.d.ts +2 -0
- package/types/lodash/fp/defaultsAll.d.ts +2 -0
- package/types/lodash/fp/defaultsDeep.d.ts +2 -0
- package/types/lodash/fp/defaultsDeepAll.d.ts +2 -0
- package/types/lodash/fp/defer.d.ts +2 -0
- package/types/lodash/fp/delay.d.ts +2 -0
- package/types/lodash/fp/difference.d.ts +2 -0
- package/types/lodash/fp/differenceBy.d.ts +2 -0
- package/types/lodash/fp/differenceWith.d.ts +2 -0
- package/types/lodash/fp/dissoc.d.ts +2 -0
- package/types/lodash/fp/dissocPath.d.ts +2 -0
- package/types/lodash/fp/divide.d.ts +2 -0
- package/types/lodash/fp/drop.d.ts +2 -0
- package/types/lodash/fp/dropLast.d.ts +2 -0
- package/types/lodash/fp/dropLastWhile.d.ts +2 -0
- package/types/lodash/fp/dropRight.d.ts +2 -0
- package/types/lodash/fp/dropRightWhile.d.ts +2 -0
- package/types/lodash/fp/dropWhile.d.ts +2 -0
- package/types/lodash/fp/each.d.ts +2 -0
- package/types/lodash/fp/eachRight.d.ts +2 -0
- package/types/lodash/fp/endsWith.d.ts +2 -0
- package/types/lodash/fp/entries.d.ts +2 -0
- package/types/lodash/fp/entriesIn.d.ts +2 -0
- package/types/lodash/fp/eq.d.ts +2 -0
- package/types/lodash/fp/equals.d.ts +2 -0
- package/types/lodash/fp/escape.d.ts +2 -0
- package/types/lodash/fp/escapeRegExp.d.ts +2 -0
- package/types/lodash/fp/every.d.ts +2 -0
- package/types/lodash/fp/extend.d.ts +2 -0
- package/types/lodash/fp/extendAll.d.ts +2 -0
- package/types/lodash/fp/extendAllWith.d.ts +2 -0
- package/types/lodash/fp/extendWith.d.ts +2 -0
- package/types/lodash/fp/fill.d.ts +2 -0
- package/types/lodash/fp/filter.d.ts +2 -0
- package/types/lodash/fp/find.d.ts +2 -0
- package/types/lodash/fp/findFrom.d.ts +2 -0
- package/types/lodash/fp/findIndex.d.ts +2 -0
- package/types/lodash/fp/findIndexFrom.d.ts +2 -0
- package/types/lodash/fp/findKey.d.ts +2 -0
- package/types/lodash/fp/findLast.d.ts +2 -0
- package/types/lodash/fp/findLastFrom.d.ts +2 -0
- package/types/lodash/fp/findLastIndex.d.ts +2 -0
- package/types/lodash/fp/findLastIndexFrom.d.ts +2 -0
- package/types/lodash/fp/findLastKey.d.ts +2 -0
- package/types/lodash/fp/first.d.ts +2 -0
- package/types/lodash/fp/flatMap.d.ts +2 -0
- package/types/lodash/fp/flatMapDeep.d.ts +2 -0
- package/types/lodash/fp/flatMapDepth.d.ts +2 -0
- package/types/lodash/fp/flatten.d.ts +2 -0
- package/types/lodash/fp/flattenDeep.d.ts +2 -0
- package/types/lodash/fp/flattenDepth.d.ts +2 -0
- package/types/lodash/fp/flip.d.ts +2 -0
- package/types/lodash/fp/floor.d.ts +2 -0
- package/types/lodash/fp/flow.d.ts +2 -0
- package/types/lodash/fp/flowRight.d.ts +2 -0
- package/types/lodash/fp/forEach.d.ts +2 -0
- package/types/lodash/fp/forEachRight.d.ts +2 -0
- package/types/lodash/fp/forIn.d.ts +2 -0
- package/types/lodash/fp/forInRight.d.ts +2 -0
- package/types/lodash/fp/forOwn.d.ts +2 -0
- package/types/lodash/fp/forOwnRight.d.ts +2 -0
- package/types/lodash/fp/fromPairs.d.ts +2 -0
- package/types/lodash/fp/functions.d.ts +2 -0
- package/types/lodash/fp/functionsIn.d.ts +2 -0
- package/types/lodash/fp/get.d.ts +2 -0
- package/types/lodash/fp/getOr.d.ts +2 -0
- package/types/lodash/fp/groupBy.d.ts +2 -0
- package/types/lodash/fp/gt.d.ts +2 -0
- package/types/lodash/fp/gte.d.ts +2 -0
- package/types/lodash/fp/has.d.ts +2 -0
- package/types/lodash/fp/hasIn.d.ts +2 -0
- package/types/lodash/fp/head.d.ts +2 -0
- package/types/lodash/fp/identical.d.ts +2 -0
- package/types/lodash/fp/identity.d.ts +2 -0
- package/types/lodash/fp/inRange.d.ts +2 -0
- package/types/lodash/fp/includes.d.ts +2 -0
- package/types/lodash/fp/includesFrom.d.ts +2 -0
- package/types/lodash/fp/indexBy.d.ts +2 -0
- package/types/lodash/fp/indexOf.d.ts +2 -0
- package/types/lodash/fp/indexOfFrom.d.ts +2 -0
- package/types/lodash/fp/init.d.ts +2 -0
- package/types/lodash/fp/initial.d.ts +2 -0
- package/types/lodash/fp/intersection.d.ts +2 -0
- package/types/lodash/fp/intersectionBy.d.ts +2 -0
- package/types/lodash/fp/intersectionWith.d.ts +2 -0
- package/types/lodash/fp/invert.d.ts +2 -0
- package/types/lodash/fp/invertBy.d.ts +2 -0
- package/types/lodash/fp/invertObj.d.ts +2 -0
- package/types/lodash/fp/invoke.d.ts +2 -0
- package/types/lodash/fp/invokeArgs.d.ts +2 -0
- package/types/lodash/fp/invokeArgsMap.d.ts +2 -0
- package/types/lodash/fp/invokeMap.d.ts +2 -0
- package/types/lodash/fp/isArguments.d.ts +2 -0
- package/types/lodash/fp/isArray.d.ts +2 -0
- package/types/lodash/fp/isArrayBuffer.d.ts +2 -0
- package/types/lodash/fp/isArrayLike.d.ts +2 -0
- package/types/lodash/fp/isArrayLikeObject.d.ts +2 -0
- package/types/lodash/fp/isBoolean.d.ts +2 -0
- package/types/lodash/fp/isBuffer.d.ts +2 -0
- package/types/lodash/fp/isDate.d.ts +2 -0
- package/types/lodash/fp/isElement.d.ts +2 -0
- package/types/lodash/fp/isEmpty.d.ts +2 -0
- package/types/lodash/fp/isEqual.d.ts +2 -0
- package/types/lodash/fp/isEqualWith.d.ts +2 -0
- package/types/lodash/fp/isError.d.ts +2 -0
- package/types/lodash/fp/isFinite.d.ts +2 -0
- package/types/lodash/fp/isFunction.d.ts +2 -0
- package/types/lodash/fp/isInteger.d.ts +2 -0
- package/types/lodash/fp/isLength.d.ts +2 -0
- package/types/lodash/fp/isMap.d.ts +2 -0
- package/types/lodash/fp/isMatch.d.ts +2 -0
- package/types/lodash/fp/isMatchWith.d.ts +2 -0
- package/types/lodash/fp/isNaN.d.ts +2 -0
- package/types/lodash/fp/isNative.d.ts +2 -0
- package/types/lodash/fp/isNil.d.ts +2 -0
- package/types/lodash/fp/isNull.d.ts +2 -0
- package/types/lodash/fp/isNumber.d.ts +2 -0
- package/types/lodash/fp/isObject.d.ts +2 -0
- package/types/lodash/fp/isObjectLike.d.ts +2 -0
- package/types/lodash/fp/isPlainObject.d.ts +2 -0
- package/types/lodash/fp/isRegExp.d.ts +2 -0
- package/types/lodash/fp/isSafeInteger.d.ts +2 -0
- package/types/lodash/fp/isSet.d.ts +2 -0
- package/types/lodash/fp/isString.d.ts +2 -0
- package/types/lodash/fp/isSymbol.d.ts +2 -0
- package/types/lodash/fp/isTypedArray.d.ts +2 -0
- package/types/lodash/fp/isUndefined.d.ts +2 -0
- package/types/lodash/fp/isWeakMap.d.ts +2 -0
- package/types/lodash/fp/isWeakSet.d.ts +2 -0
- package/types/lodash/fp/iteratee.d.ts +2 -0
- package/types/lodash/fp/join.d.ts +2 -0
- package/types/lodash/fp/juxt.d.ts +2 -0
- package/types/lodash/fp/kebabCase.d.ts +2 -0
- package/types/lodash/fp/keyBy.d.ts +2 -0
- package/types/lodash/fp/keys.d.ts +2 -0
- package/types/lodash/fp/keysIn.d.ts +2 -0
- package/types/lodash/fp/last.d.ts +2 -0
- package/types/lodash/fp/lastIndexOf.d.ts +2 -0
- package/types/lodash/fp/lastIndexOfFrom.d.ts +2 -0
- package/types/lodash/fp/lowerCase.d.ts +2 -0
- package/types/lodash/fp/lowerFirst.d.ts +2 -0
- package/types/lodash/fp/lt.d.ts +2 -0
- package/types/lodash/fp/lte.d.ts +2 -0
- package/types/lodash/fp/map.d.ts +2 -0
- package/types/lodash/fp/mapKeys.d.ts +2 -0
- package/types/lodash/fp/mapValues.d.ts +2 -0
- package/types/lodash/fp/matches.d.ts +2 -0
- package/types/lodash/fp/matchesProperty.d.ts +2 -0
- package/types/lodash/fp/max.d.ts +2 -0
- package/types/lodash/fp/maxBy.d.ts +2 -0
- package/types/lodash/fp/mean.d.ts +2 -0
- package/types/lodash/fp/meanBy.d.ts +2 -0
- package/types/lodash/fp/memoize.d.ts +2 -0
- package/types/lodash/fp/merge.d.ts +2 -0
- package/types/lodash/fp/mergeAll.d.ts +2 -0
- package/types/lodash/fp/mergeAllWith.d.ts +2 -0
- package/types/lodash/fp/mergeWith.d.ts +2 -0
- package/types/lodash/fp/method.d.ts +2 -0
- package/types/lodash/fp/methodOf.d.ts +2 -0
- package/types/lodash/fp/min.d.ts +2 -0
- package/types/lodash/fp/minBy.d.ts +2 -0
- package/types/lodash/fp/multiply.d.ts +2 -0
- package/types/lodash/fp/nAry.d.ts +2 -0
- package/types/lodash/fp/negate.d.ts +2 -0
- package/types/lodash/fp/noConflict.d.ts +2 -0
- package/types/lodash/fp/noop.d.ts +2 -0
- package/types/lodash/fp/now.d.ts +2 -0
- package/types/lodash/fp/nth.d.ts +2 -0
- package/types/lodash/fp/nthArg.d.ts +2 -0
- package/types/lodash/fp/omit.d.ts +2 -0
- package/types/lodash/fp/omitAll.d.ts +2 -0
- package/types/lodash/fp/omitBy.d.ts +2 -0
- package/types/lodash/fp/once.d.ts +2 -0
- package/types/lodash/fp/orderBy.d.ts +2 -0
- package/types/lodash/fp/over.d.ts +2 -0
- package/types/lodash/fp/overArgs.d.ts +2 -0
- package/types/lodash/fp/overEvery.d.ts +2 -0
- package/types/lodash/fp/overSome.d.ts +2 -0
- package/types/lodash/fp/pad.d.ts +2 -0
- package/types/lodash/fp/padChars.d.ts +2 -0
- package/types/lodash/fp/padCharsEnd.d.ts +2 -0
- package/types/lodash/fp/padCharsStart.d.ts +2 -0
- package/types/lodash/fp/padEnd.d.ts +2 -0
- package/types/lodash/fp/padStart.d.ts +2 -0
- package/types/lodash/fp/parseInt.d.ts +2 -0
- package/types/lodash/fp/partial.d.ts +2 -0
- package/types/lodash/fp/partialRight.d.ts +2 -0
- package/types/lodash/fp/partition.d.ts +2 -0
- package/types/lodash/fp/path.d.ts +2 -0
- package/types/lodash/fp/pathEq.d.ts +2 -0
- package/types/lodash/fp/pathOr.d.ts +2 -0
- package/types/lodash/fp/paths.d.ts +2 -0
- package/types/lodash/fp/pick.d.ts +2 -0
- package/types/lodash/fp/pickAll.d.ts +2 -0
- package/types/lodash/fp/pickBy.d.ts +2 -0
- package/types/lodash/fp/pipe.d.ts +2 -0
- package/types/lodash/fp/placeholder.d.ts +3 -0
- package/types/lodash/fp/pluck.d.ts +2 -0
- package/types/lodash/fp/prop.d.ts +2 -0
- package/types/lodash/fp/propEq.d.ts +2 -0
- package/types/lodash/fp/propOr.d.ts +2 -0
- package/types/lodash/fp/property.d.ts +2 -0
- package/types/lodash/fp/propertyOf.d.ts +2 -0
- package/types/lodash/fp/props.d.ts +2 -0
- package/types/lodash/fp/pull.d.ts +2 -0
- package/types/lodash/fp/pullAll.d.ts +2 -0
- package/types/lodash/fp/pullAllBy.d.ts +2 -0
- package/types/lodash/fp/pullAllWith.d.ts +2 -0
- package/types/lodash/fp/pullAt.d.ts +2 -0
- package/types/lodash/fp/random.d.ts +2 -0
- package/types/lodash/fp/range.d.ts +2 -0
- package/types/lodash/fp/rangeRight.d.ts +2 -0
- package/types/lodash/fp/rangeStep.d.ts +2 -0
- package/types/lodash/fp/rangeStepRight.d.ts +2 -0
- package/types/lodash/fp/rearg.d.ts +2 -0
- package/types/lodash/fp/reduce.d.ts +2 -0
- package/types/lodash/fp/reduceRight.d.ts +2 -0
- package/types/lodash/fp/reject.d.ts +2 -0
- package/types/lodash/fp/remove.d.ts +2 -0
- package/types/lodash/fp/repeat.d.ts +2 -0
- package/types/lodash/fp/replace.d.ts +2 -0
- package/types/lodash/fp/rest.d.ts +2 -0
- package/types/lodash/fp/restFrom.d.ts +2 -0
- package/types/lodash/fp/result.d.ts +2 -0
- package/types/lodash/fp/reverse.d.ts +2 -0
- package/types/lodash/fp/round.d.ts +2 -0
- package/types/lodash/fp/runInContext.d.ts +2 -0
- package/types/lodash/fp/sample.d.ts +2 -0
- package/types/lodash/fp/sampleSize.d.ts +2 -0
- package/types/lodash/fp/set.d.ts +2 -0
- package/types/lodash/fp/setWith.d.ts +2 -0
- package/types/lodash/fp/shuffle.d.ts +2 -0
- package/types/lodash/fp/size.d.ts +2 -0
- package/types/lodash/fp/slice.d.ts +2 -0
- package/types/lodash/fp/snakeCase.d.ts +2 -0
- package/types/lodash/fp/some.d.ts +2 -0
- package/types/lodash/fp/sortBy.d.ts +2 -0
- package/types/lodash/fp/sortedIndex.d.ts +2 -0
- package/types/lodash/fp/sortedIndexBy.d.ts +2 -0
- package/types/lodash/fp/sortedIndexOf.d.ts +2 -0
- package/types/lodash/fp/sortedLastIndex.d.ts +2 -0
- package/types/lodash/fp/sortedLastIndexBy.d.ts +2 -0
- package/types/lodash/fp/sortedLastIndexOf.d.ts +2 -0
- package/types/lodash/fp/sortedUniq.d.ts +2 -0
- package/types/lodash/fp/sortedUniqBy.d.ts +2 -0
- package/types/lodash/fp/split.d.ts +2 -0
- package/types/lodash/fp/spread.d.ts +2 -0
- package/types/lodash/fp/spreadFrom.d.ts +2 -0
- package/types/lodash/fp/startCase.d.ts +2 -0
- package/types/lodash/fp/startsWith.d.ts +2 -0
- package/types/lodash/fp/stubArray.d.ts +2 -0
- package/types/lodash/fp/stubFalse.d.ts +2 -0
- package/types/lodash/fp/stubObject.d.ts +2 -0
- package/types/lodash/fp/stubString.d.ts +2 -0
- package/types/lodash/fp/stubTrue.d.ts +2 -0
- package/types/lodash/fp/subtract.d.ts +2 -0
- package/types/lodash/fp/sum.d.ts +2 -0
- package/types/lodash/fp/sumBy.d.ts +2 -0
- package/types/lodash/fp/symmetricDifference.d.ts +2 -0
- package/types/lodash/fp/symmetricDifferenceBy.d.ts +2 -0
- package/types/lodash/fp/symmetricDifferenceWith.d.ts +2 -0
- package/types/lodash/fp/tail.d.ts +2 -0
- package/types/lodash/fp/take.d.ts +2 -0
- package/types/lodash/fp/takeLast.d.ts +2 -0
- package/types/lodash/fp/takeLastWhile.d.ts +2 -0
- package/types/lodash/fp/takeRight.d.ts +2 -0
- package/types/lodash/fp/takeRightWhile.d.ts +2 -0
- package/types/lodash/fp/takeWhile.d.ts +2 -0
- package/types/lodash/fp/tap.d.ts +2 -0
- package/types/lodash/fp/template.d.ts +2 -0
- package/types/lodash/fp/throttle.d.ts +2 -0
- package/types/lodash/fp/thru.d.ts +2 -0
- package/types/lodash/fp/times.d.ts +2 -0
- package/types/lodash/fp/toArray.d.ts +2 -0
- package/types/lodash/fp/toFinite.d.ts +2 -0
- package/types/lodash/fp/toInteger.d.ts +2 -0
- package/types/lodash/fp/toLength.d.ts +2 -0
- package/types/lodash/fp/toLower.d.ts +2 -0
- package/types/lodash/fp/toNumber.d.ts +2 -0
- package/types/lodash/fp/toPairs.d.ts +2 -0
- package/types/lodash/fp/toPairsIn.d.ts +2 -0
- package/types/lodash/fp/toPath.d.ts +2 -0
- package/types/lodash/fp/toPlainObject.d.ts +2 -0
- package/types/lodash/fp/toSafeInteger.d.ts +2 -0
- package/types/lodash/fp/toString.d.ts +2 -0
- package/types/lodash/fp/toUpper.d.ts +2 -0
- package/types/lodash/fp/transform.d.ts +2 -0
- package/types/lodash/fp/trim.d.ts +2 -0
- package/types/lodash/fp/trimChars.d.ts +2 -0
- package/types/lodash/fp/trimCharsEnd.d.ts +2 -0
- package/types/lodash/fp/trimCharsStart.d.ts +2 -0
- package/types/lodash/fp/trimEnd.d.ts +2 -0
- package/types/lodash/fp/trimStart.d.ts +2 -0
- package/types/lodash/fp/truncate.d.ts +2 -0
- package/types/lodash/fp/unapply.d.ts +2 -0
- package/types/lodash/fp/unary.d.ts +2 -0
- package/types/lodash/fp/unescape.d.ts +2 -0
- package/types/lodash/fp/union.d.ts +2 -0
- package/types/lodash/fp/unionBy.d.ts +2 -0
- package/types/lodash/fp/unionWith.d.ts +2 -0
- package/types/lodash/fp/uniq.d.ts +2 -0
- package/types/lodash/fp/uniqBy.d.ts +2 -0
- package/types/lodash/fp/uniqWith.d.ts +2 -0
- package/types/lodash/fp/uniqueId.d.ts +2 -0
- package/types/lodash/fp/unnest.d.ts +2 -0
- package/types/lodash/fp/unset.d.ts +2 -0
- package/types/lodash/fp/unzip.d.ts +2 -0
- package/types/lodash/fp/unzipWith.d.ts +2 -0
- package/types/lodash/fp/update.d.ts +2 -0
- package/types/lodash/fp/updateWith.d.ts +2 -0
- package/types/lodash/fp/upperCase.d.ts +2 -0
- package/types/lodash/fp/upperFirst.d.ts +2 -0
- package/types/lodash/fp/useWith.d.ts +2 -0
- package/types/lodash/fp/values.d.ts +2 -0
- package/types/lodash/fp/valuesIn.d.ts +2 -0
- package/types/lodash/fp/where.d.ts +2 -0
- package/types/lodash/fp/whereEq.d.ts +2 -0
- package/types/lodash/fp/without.d.ts +2 -0
- package/types/lodash/fp/words.d.ts +2 -0
- package/types/lodash/fp/wrap.d.ts +2 -0
- package/types/lodash/fp/xor.d.ts +2 -0
- package/types/lodash/fp/xorBy.d.ts +2 -0
- package/types/lodash/fp/xorWith.d.ts +2 -0
- package/types/lodash/fp/zip.d.ts +2 -0
- package/types/lodash/fp/zipAll.d.ts +2 -0
- package/types/lodash/fp/zipObj.d.ts +2 -0
- package/types/lodash/fp/zipObject.d.ts +2 -0
- package/types/lodash/fp/zipObjectDeep.d.ts +2 -0
- package/types/lodash/fp/zipWith.d.ts +2 -0
- package/types/lodash/fp.d.ts +4766 -0
- package/types/lodash/fromPairs.d.ts +2 -0
- package/types/lodash/functions.d.ts +2 -0
- package/types/lodash/functionsIn.d.ts +2 -0
- package/types/lodash/get.d.ts +2 -0
- package/types/lodash/groupBy.d.ts +2 -0
- package/types/lodash/gt.d.ts +2 -0
- package/types/lodash/gte.d.ts +2 -0
- package/types/lodash/has.d.ts +2 -0
- package/types/lodash/hasIn.d.ts +2 -0
- package/types/lodash/head.d.ts +2 -0
- package/types/lodash/identity.d.ts +2 -0
- package/types/lodash/inRange.d.ts +2 -0
- package/types/lodash/includes.d.ts +2 -0
- package/types/lodash/index.d.ts +47 -0
- package/types/lodash/indexOf.d.ts +2 -0
- package/types/lodash/initial.d.ts +2 -0
- package/types/lodash/intersection.d.ts +2 -0
- package/types/lodash/intersectionBy.d.ts +2 -0
- package/types/lodash/intersectionWith.d.ts +2 -0
- package/types/lodash/invert.d.ts +2 -0
- package/types/lodash/invertBy.d.ts +2 -0
- package/types/lodash/invoke.d.ts +2 -0
- package/types/lodash/invokeMap.d.ts +2 -0
- package/types/lodash/isArguments.d.ts +2 -0
- package/types/lodash/isArray.d.ts +2 -0
- package/types/lodash/isArrayBuffer.d.ts +2 -0
- package/types/lodash/isArrayLike.d.ts +2 -0
- package/types/lodash/isArrayLikeObject.d.ts +2 -0
- package/types/lodash/isBoolean.d.ts +2 -0
- package/types/lodash/isBuffer.d.ts +2 -0
- package/types/lodash/isDate.d.ts +2 -0
- package/types/lodash/isElement.d.ts +2 -0
- package/types/lodash/isEmpty.d.ts +2 -0
- package/types/lodash/isEqual.d.ts +2 -0
- package/types/lodash/isEqualWith.d.ts +2 -0
- package/types/lodash/isError.d.ts +2 -0
- package/types/lodash/isFinite.d.ts +2 -0
- package/types/lodash/isFunction.d.ts +2 -0
- package/types/lodash/isInteger.d.ts +2 -0
- package/types/lodash/isLength.d.ts +2 -0
- package/types/lodash/isMap.d.ts +2 -0
- package/types/lodash/isMatch.d.ts +2 -0
- package/types/lodash/isMatchWith.d.ts +2 -0
- package/types/lodash/isNaN.d.ts +2 -0
- package/types/lodash/isNative.d.ts +2 -0
- package/types/lodash/isNil.d.ts +2 -0
- package/types/lodash/isNull.d.ts +2 -0
- package/types/lodash/isNumber.d.ts +2 -0
- package/types/lodash/isObject.d.ts +2 -0
- package/types/lodash/isObjectLike.d.ts +2 -0
- package/types/lodash/isPlainObject.d.ts +2 -0
- package/types/lodash/isRegExp.d.ts +2 -0
- package/types/lodash/isSafeInteger.d.ts +2 -0
- package/types/lodash/isSet.d.ts +2 -0
- package/types/lodash/isString.d.ts +2 -0
- package/types/lodash/isSymbol.d.ts +2 -0
- package/types/lodash/isTypedArray.d.ts +2 -0
- package/types/lodash/isUndefined.d.ts +2 -0
- package/types/lodash/isWeakMap.d.ts +2 -0
- package/types/lodash/isWeakSet.d.ts +2 -0
- package/types/lodash/iteratee.d.ts +2 -0
- package/types/lodash/join.d.ts +2 -0
- package/types/lodash/kebabCase.d.ts +2 -0
- package/types/lodash/keyBy.d.ts +2 -0
- package/types/lodash/keys.d.ts +2 -0
- package/types/lodash/keysIn.d.ts +2 -0
- package/types/lodash/last.d.ts +2 -0
- package/types/lodash/lastIndexOf.d.ts +2 -0
- package/types/lodash/lowerCase.d.ts +2 -0
- package/types/lodash/lowerFirst.d.ts +2 -0
- package/types/lodash/lt.d.ts +2 -0
- package/types/lodash/lte.d.ts +2 -0
- package/types/lodash/map.d.ts +2 -0
- package/types/lodash/mapKeys.d.ts +2 -0
- package/types/lodash/mapValues.d.ts +2 -0
- package/types/lodash/matches.d.ts +2 -0
- package/types/lodash/matchesProperty.d.ts +2 -0
- package/types/lodash/max.d.ts +2 -0
- package/types/lodash/maxBy.d.ts +2 -0
- package/types/lodash/mean.d.ts +2 -0
- package/types/lodash/meanBy.d.ts +2 -0
- package/types/lodash/memoize.d.ts +2 -0
- package/types/lodash/merge.d.ts +2 -0
- package/types/lodash/mergeWith.d.ts +2 -0
- package/types/lodash/method.d.ts +2 -0
- package/types/lodash/methodOf.d.ts +2 -0
- package/types/lodash/min.d.ts +2 -0
- package/types/lodash/minBy.d.ts +2 -0
- package/types/lodash/mixin.d.ts +2 -0
- package/types/lodash/negate.d.ts +2 -0
- package/types/lodash/noConflict.d.ts +2 -0
- package/types/lodash/noop.d.ts +2 -0
- package/types/lodash/now.d.ts +2 -0
- package/types/lodash/nth.d.ts +2 -0
- package/types/lodash/nthArg.d.ts +2 -0
- package/types/lodash/omit.d.ts +2 -0
- package/types/lodash/omitBy.d.ts +2 -0
- package/types/lodash/once.d.ts +2 -0
- package/types/lodash/orderBy.d.ts +2 -0
- package/types/lodash/over.d.ts +2 -0
- package/types/lodash/overArgs.d.ts +2 -0
- package/types/lodash/overEvery.d.ts +2 -0
- package/types/lodash/overSome.d.ts +2 -0
- package/types/lodash/pad.d.ts +2 -0
- package/types/lodash/padEnd.d.ts +2 -0
- package/types/lodash/padStart.d.ts +2 -0
- package/types/lodash/parseInt.d.ts +2 -0
- package/types/lodash/partial.d.ts +2 -0
- package/types/lodash/partialRight.d.ts +2 -0
- package/types/lodash/partition.d.ts +2 -0
- package/types/lodash/pick.d.ts +2 -0
- package/types/lodash/pickBy.d.ts +2 -0
- package/types/lodash/property.d.ts +2 -0
- package/types/lodash/propertyOf.d.ts +2 -0
- package/types/lodash/pull.d.ts +2 -0
- package/types/lodash/pullAll.d.ts +2 -0
- package/types/lodash/pullAllBy.d.ts +2 -0
- package/types/lodash/pullAllWith.d.ts +2 -0
- package/types/lodash/pullAt.d.ts +2 -0
- package/types/lodash/random.d.ts +2 -0
- package/types/lodash/range.d.ts +2 -0
- package/types/lodash/rangeRight.d.ts +2 -0
- package/types/lodash/rearg.d.ts +2 -0
- package/types/lodash/reduce.d.ts +2 -0
- package/types/lodash/reduceRight.d.ts +2 -0
- package/types/lodash/reject.d.ts +2 -0
- package/types/lodash/remove.d.ts +2 -0
- package/types/lodash/repeat.d.ts +2 -0
- package/types/lodash/replace.d.ts +2 -0
- package/types/lodash/rest.d.ts +2 -0
- package/types/lodash/result.d.ts +2 -0
- package/types/lodash/reverse.d.ts +2 -0
- package/types/lodash/round.d.ts +2 -0
- package/types/lodash/runInContext.d.ts +2 -0
- package/types/lodash/sample.d.ts +2 -0
- package/types/lodash/sampleSize.d.ts +2 -0
- package/types/lodash/set.d.ts +2 -0
- package/types/lodash/setWith.d.ts +2 -0
- package/types/lodash/shuffle.d.ts +2 -0
- package/types/lodash/size.d.ts +2 -0
- package/types/lodash/slice.d.ts +2 -0
- package/types/lodash/snakeCase.d.ts +2 -0
- package/types/lodash/some.d.ts +2 -0
- package/types/lodash/sortBy.d.ts +2 -0
- package/types/lodash/sortedIndex.d.ts +2 -0
- package/types/lodash/sortedIndexBy.d.ts +2 -0
- package/types/lodash/sortedIndexOf.d.ts +2 -0
- package/types/lodash/sortedLastIndex.d.ts +2 -0
- package/types/lodash/sortedLastIndexBy.d.ts +2 -0
- package/types/lodash/sortedLastIndexOf.d.ts +2 -0
- package/types/lodash/sortedUniq.d.ts +2 -0
- package/types/lodash/sortedUniqBy.d.ts +2 -0
- package/types/lodash/split.d.ts +2 -0
- package/types/lodash/spread.d.ts +2 -0
- package/types/lodash/startCase.d.ts +2 -0
- package/types/lodash/startsWith.d.ts +2 -0
- package/types/lodash/subtract.d.ts +2 -0
- package/types/lodash/sum.d.ts +2 -0
- package/types/lodash/sumBy.d.ts +2 -0
- package/types/lodash/tail.d.ts +2 -0
- package/types/lodash/take.d.ts +2 -0
- package/types/lodash/takeRight.d.ts +2 -0
- package/types/lodash/takeRightWhile.d.ts +2 -0
- package/types/lodash/takeWhile.d.ts +2 -0
- package/types/lodash/tap.d.ts +2 -0
- package/types/lodash/template.d.ts +2 -0
- package/types/lodash/throttle.d.ts +2 -0
- package/types/lodash/thru.d.ts +2 -0
- package/types/lodash/times.d.ts +2 -0
- package/types/lodash/toArray.d.ts +2 -0
- package/types/lodash/toFinite.d.ts +2 -0
- package/types/lodash/toInteger.d.ts +2 -0
- package/types/lodash/toLength.d.ts +2 -0
- package/types/lodash/toLower.d.ts +2 -0
- package/types/lodash/toNumber.d.ts +2 -0
- package/types/lodash/toPairs.d.ts +2 -0
- package/types/lodash/toPairsIn.d.ts +2 -0
- package/types/lodash/toPath.d.ts +2 -0
- package/types/lodash/toPlainObject.d.ts +2 -0
- package/types/lodash/toSafeInteger.d.ts +2 -0
- package/types/lodash/toString.d.ts +2 -0
- package/types/lodash/toUpper.d.ts +2 -0
- package/types/lodash/transform.d.ts +2 -0
- package/types/lodash/trim.d.ts +2 -0
- package/types/lodash/trimEnd.d.ts +2 -0
- package/types/lodash/trimStart.d.ts +2 -0
- package/types/lodash/truncate.d.ts +2 -0
- package/types/lodash/unary.d.ts +2 -0
- package/types/lodash/unescape.d.ts +2 -0
- package/types/lodash/union.d.ts +2 -0
- package/types/lodash/unionBy.d.ts +2 -0
- package/types/lodash/unionWith.d.ts +2 -0
- package/types/lodash/uniq.d.ts +2 -0
- package/types/lodash/uniqBy.d.ts +2 -0
- package/types/lodash/uniqWith.d.ts +2 -0
- package/types/lodash/uniqueId.d.ts +2 -0
- package/types/lodash/unset.d.ts +2 -0
- package/types/lodash/unzip.d.ts +2 -0
- package/types/lodash/unzipWith.d.ts +2 -0
- package/types/lodash/update.d.ts +2 -0
- package/types/lodash/updateWith.d.ts +2 -0
- package/types/lodash/upperCase.d.ts +2 -0
- package/types/lodash/upperFirst.d.ts +2 -0
- package/types/lodash/values.d.ts +2 -0
- package/types/lodash/valuesIn.d.ts +2 -0
- package/types/lodash/without.d.ts +2 -0
- package/types/lodash/words.d.ts +2 -0
- package/types/lodash/wrap.d.ts +2 -0
- package/types/lodash/xor.d.ts +2 -0
- package/types/lodash/xorBy.d.ts +2 -0
- package/types/lodash/xorWith.d.ts +2 -0
- package/types/lodash/zip.d.ts +2 -0
- package/types/lodash/zipObject.d.ts +2 -0
- package/types/lodash/zipObjectDeep.d.ts +2 -0
- package/types/lodash/zipWith.d.ts +2 -0
- package/types/minimatch/LICENSE +21 -0
- package/types/minimatch/README.md +16 -0
- package/types/minimatch/index.d.ts +214 -0
- package/types/mocha/LICENSE +21 -0
- package/types/mocha/README.md +16 -0
- package/types/mocha/index.d.ts +241 -0
- package/types/sinon/LICENSE +21 -0
- package/types/sinon/README.md +16 -0
- package/types/sinon/index.d.ts +1659 -0
- package/types/sinon/ts3.1/index.d.ts +1747 -0
- package/types/sinon-chai/LICENSE +21 -0
- package/types/sinon-chai/README.md +16 -0
- package/types/sinon-chai/index.d.ts +109 -0
- package/types/minimatch.d.ts +0 -11
- package/types/moment.d.ts +0 -11
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Shim definition to export a namespace. Cypress is actually a global module
|
|
2
2
|
// so import/export isn't allowed there. We import here and define a global module
|
|
3
3
|
// so that Cypress can get and use the Blob type
|
|
4
|
-
import
|
|
4
|
+
import BluebirdStatic = require('./bluebird')
|
|
5
5
|
|
|
6
6
|
export = Bluebird
|
|
7
7
|
export as namespace Bluebird
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// Shim definition to export a namespace. Cypress is actually a global module
|
|
2
2
|
// so import/export isn't allowed there. We import here and define a global module
|
|
3
|
-
|
|
4
|
-
import * as chai from 'chai'
|
|
3
|
+
/// <reference path="./chai/index.d.ts" />
|
|
5
4
|
|
|
6
5
|
export = Chai
|
|
7
6
|
export as namespace Chai
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
// I was trying to avoid relying on "import" of actual module from "minimatch"
|
|
2
|
+
// because it would not work in test project, and the only reliable way
|
|
3
|
+
// to get around type errors finally was to copy the minimal minimatch function
|
|
4
|
+
// definition from "minimatch/index.d.ts" here and just keep it in our code
|
|
5
|
+
|
|
6
|
+
export = Minimatch
|
|
7
|
+
export as namespace Minimatch
|
|
8
|
+
|
|
9
|
+
interface MinimatchOptions {
|
|
10
|
+
/**
|
|
11
|
+
* Dump a ton of stuff to stderr.
|
|
12
|
+
*
|
|
13
|
+
* @default false
|
|
14
|
+
*/
|
|
15
|
+
debug?: boolean
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Do not expand {a,b} and {1..3} brace sets.
|
|
19
|
+
*
|
|
20
|
+
* @default false
|
|
21
|
+
*/
|
|
22
|
+
nobrace?: boolean
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Disable ** matching against multiple folder names.
|
|
26
|
+
*
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
noglobstar?: boolean
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Allow patterns to match filenames starting with a period,
|
|
33
|
+
* even if the pattern does not explicitly have a period in that spot.
|
|
34
|
+
*
|
|
35
|
+
* @default false
|
|
36
|
+
*/
|
|
37
|
+
dot?: boolean
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Disable "extglob" style patterns like +(a|b).
|
|
41
|
+
*
|
|
42
|
+
* @default false
|
|
43
|
+
*/
|
|
44
|
+
noext?: boolean
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Perform a case-insensitive match.
|
|
48
|
+
*
|
|
49
|
+
* @default false
|
|
50
|
+
*/
|
|
51
|
+
nocase?: boolean
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* When a match is not found by minimatch.match,
|
|
55
|
+
* return a list containing the pattern itself if this option is set.
|
|
56
|
+
* Otherwise, an empty list is returned if there are no matches.
|
|
57
|
+
*
|
|
58
|
+
* @default false
|
|
59
|
+
*/
|
|
60
|
+
nonull?: boolean
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* If set, then patterns without slashes will be matched against
|
|
64
|
+
* the basename of the path if it contains slashes.
|
|
65
|
+
*
|
|
66
|
+
* @default false
|
|
67
|
+
*/
|
|
68
|
+
matchBase?: boolean
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Suppress the behavior of treating #
|
|
72
|
+
* at the start of a pattern as a comment.
|
|
73
|
+
*
|
|
74
|
+
* @default false
|
|
75
|
+
*/
|
|
76
|
+
nocomment?: boolean
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Suppress the behavior of treating a leading ! character as negation.
|
|
80
|
+
*
|
|
81
|
+
* @default false
|
|
82
|
+
*/
|
|
83
|
+
nonegate?: boolean
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Returns from negate expressions the same as if they were not negated.
|
|
87
|
+
* (Ie, true on a hit, false on a miss.)
|
|
88
|
+
*
|
|
89
|
+
* @default false
|
|
90
|
+
*/
|
|
91
|
+
flipNegate?: boolean
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
declare namespace Minimatch {
|
|
95
|
+
function minimatch(target: string, pattern: string, options?: MinimatchOptions): boolean
|
|
96
|
+
}
|
|
@@ -0,0 +1,504 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Cypress NPM api type declarations
|
|
3
|
+
// https://on.cypress.io/module-api
|
|
4
|
+
// https://github.com/cypress-io/cypress/issues/2141
|
|
5
|
+
//
|
|
6
|
+
// in the future the NPM module itself will be in TypeScript
|
|
7
|
+
// but for now describe it as an ambient module
|
|
8
|
+
|
|
9
|
+
declare module 'cypress' {
|
|
10
|
+
/**
|
|
11
|
+
* Cypress configuration object.
|
|
12
|
+
* @see https://on.cypress.io/configuration
|
|
13
|
+
*/
|
|
14
|
+
interface CypressConfiguration {
|
|
15
|
+
//
|
|
16
|
+
// global options
|
|
17
|
+
//
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Url used as prefix for `cy.visit()` or `cy.request()` command’s url
|
|
21
|
+
*/
|
|
22
|
+
baseUrl: string,
|
|
23
|
+
/**
|
|
24
|
+
* Any values to be set as environment variables
|
|
25
|
+
*/
|
|
26
|
+
env: object,
|
|
27
|
+
/**
|
|
28
|
+
* A String or Array of glob patterns used to ignore test files
|
|
29
|
+
* that would otherwise be shown in your list of tests.
|
|
30
|
+
*/
|
|
31
|
+
ignoreTestFiles: string | string[],
|
|
32
|
+
/**
|
|
33
|
+
* The number of tests for which snapshots and command data are kept in memory.
|
|
34
|
+
* Reduce this number if you are experiencing high memory consumption in your browser during a test run.
|
|
35
|
+
*/
|
|
36
|
+
numTestsKeptInMemory: number,
|
|
37
|
+
/**
|
|
38
|
+
* Port used to host Cypress. Normally this is a randomly generated port
|
|
39
|
+
*/
|
|
40
|
+
port: number,
|
|
41
|
+
/**
|
|
42
|
+
* The reporter used during the `cypress run`. Default is "spec"
|
|
43
|
+
*/
|
|
44
|
+
reporter: string,
|
|
45
|
+
/**
|
|
46
|
+
* A String glob pattern of the test files to load.
|
|
47
|
+
*/
|
|
48
|
+
testFiles: string
|
|
49
|
+
|
|
50
|
+
//
|
|
51
|
+
// timeouts
|
|
52
|
+
//
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Time, in milliseconds, to wait until most DOM based commands
|
|
56
|
+
* are considered timed out.
|
|
57
|
+
*/
|
|
58
|
+
defaultCommandTimeout: number,
|
|
59
|
+
/**
|
|
60
|
+
* Time, in milliseconds, to wait for a system command to
|
|
61
|
+
* finish executing during a `cy.exec()` command.
|
|
62
|
+
*/
|
|
63
|
+
execTimeout: number,
|
|
64
|
+
/**
|
|
65
|
+
* Time, in milliseconds, to wait for a task to finish executing
|
|
66
|
+
* during a `cy.task()` command.
|
|
67
|
+
*/
|
|
68
|
+
taskTimeout: number,
|
|
69
|
+
/**
|
|
70
|
+
* Time, in milliseconds, to wait for page transition events or
|
|
71
|
+
* `cy.visit()`, `cy.go()`, `cy.reload()` commands to fire
|
|
72
|
+
* their page load events.
|
|
73
|
+
*/
|
|
74
|
+
pageLoadTimeout: number,
|
|
75
|
+
/**
|
|
76
|
+
* Time, in milliseconds, to wait for an XHR request to go out
|
|
77
|
+
* in a `cy.wait()` command.
|
|
78
|
+
*/
|
|
79
|
+
requestTimeout: number,
|
|
80
|
+
/**
|
|
81
|
+
* Time, in milliseconds, to wait until a response in a
|
|
82
|
+
* `cy.request()`, `cy.wait()`, `cy.fixture()`, `cy.getCookie()`,
|
|
83
|
+
* `cy.getCookies()`, `cy.setCookie()`, `cy.clearCookie()`,
|
|
84
|
+
* `cy.clearCookies()`, and `cy.screenshot()` commands.
|
|
85
|
+
*/
|
|
86
|
+
responseTimeout: number,
|
|
87
|
+
|
|
88
|
+
//
|
|
89
|
+
// folders and files
|
|
90
|
+
//
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Path to folder where application files will attempt to be served from.
|
|
94
|
+
*/
|
|
95
|
+
fileServerFolder: string,
|
|
96
|
+
/**
|
|
97
|
+
* Path to folder containing fixture files (Pass `false` to disable).
|
|
98
|
+
*/
|
|
99
|
+
fixturesFolder: string | false,
|
|
100
|
+
/**
|
|
101
|
+
* Path to folder containing integration test files.
|
|
102
|
+
*/
|
|
103
|
+
integrationFolder: string,
|
|
104
|
+
/**
|
|
105
|
+
* Path to plugins file. (Pass `false` to disable)
|
|
106
|
+
*/
|
|
107
|
+
pluginsFile: string | false,
|
|
108
|
+
/**
|
|
109
|
+
* Path to folder where screenshots will be saved from `cy.screenshot()`
|
|
110
|
+
* command or after a test fails during cypress run.
|
|
111
|
+
*/
|
|
112
|
+
screenshotsFolder: string,
|
|
113
|
+
/**
|
|
114
|
+
* Path to file to load before test files load.
|
|
115
|
+
* This file is compiled and bundled. (Pass `false` to disable).
|
|
116
|
+
*/
|
|
117
|
+
supportFile: string | false,
|
|
118
|
+
/**
|
|
119
|
+
* Path to folder where videos will be saved during `cypress run`
|
|
120
|
+
*/
|
|
121
|
+
videosFolder: string,
|
|
122
|
+
|
|
123
|
+
//
|
|
124
|
+
// screenshots
|
|
125
|
+
//
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Whether Cypress will trash assets within the `screenshotsFolder` and
|
|
129
|
+
* `videosFolder` before tests run with cypress run. Default is `true`.
|
|
130
|
+
*/
|
|
131
|
+
trashAssetsBeforeRuns: boolean,
|
|
132
|
+
|
|
133
|
+
//
|
|
134
|
+
// videos
|
|
135
|
+
//
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* The quality setting for the video compression, in Constant Rate Factor (CRF).
|
|
139
|
+
* The value can be false to disable compression or a value between 0 and 51,
|
|
140
|
+
* where a lower value results in better quality
|
|
141
|
+
* (at the expense of a higher file size).
|
|
142
|
+
*/
|
|
143
|
+
videoCompression: number | false,
|
|
144
|
+
/**
|
|
145
|
+
* Whether Cypress will capture a video of the tests run with `cypress run`.
|
|
146
|
+
*/
|
|
147
|
+
video: boolean,
|
|
148
|
+
/**
|
|
149
|
+
* Whether Cypress will upload the video to the Dashboard even if
|
|
150
|
+
* all tests are passing. This applies only when recording your runs
|
|
151
|
+
* to the Dashboard. Turn this off if you’d like the video uploaded
|
|
152
|
+
* only when there are failing tests.
|
|
153
|
+
*/
|
|
154
|
+
videoUploadOnPasses: boolean,
|
|
155
|
+
|
|
156
|
+
//
|
|
157
|
+
// browser
|
|
158
|
+
//
|
|
159
|
+
/**
|
|
160
|
+
* Whether Chrome Web Security for `same-origin` policy and
|
|
161
|
+
* `insecure mixed content` is enabled.
|
|
162
|
+
*/
|
|
163
|
+
chromeWebSecurity: boolean,
|
|
164
|
+
/**
|
|
165
|
+
* Enables you to override the default user agent the
|
|
166
|
+
* browser sends in all request headers.
|
|
167
|
+
*/
|
|
168
|
+
userAgent: string,
|
|
169
|
+
/**
|
|
170
|
+
* A String or Array of hosts that you wish to block traffic for.
|
|
171
|
+
*/
|
|
172
|
+
blacklistHosts: string | string[],
|
|
173
|
+
/**
|
|
174
|
+
* Whether Cypress will search for and replace obstructive JS code
|
|
175
|
+
* in `.js` or `.html` files.
|
|
176
|
+
*/
|
|
177
|
+
modifyObstructiveCode: boolean,
|
|
178
|
+
|
|
179
|
+
//
|
|
180
|
+
// viewport
|
|
181
|
+
//
|
|
182
|
+
/**
|
|
183
|
+
* Default height in pixels for the application under tests’ viewport
|
|
184
|
+
* (Override with `cy.viewport()` command)
|
|
185
|
+
*/
|
|
186
|
+
viewportHeight: number,
|
|
187
|
+
/**
|
|
188
|
+
* Default width in pixels for the application under tests’ viewport.
|
|
189
|
+
* (Override with `cy.viewport()` command)
|
|
190
|
+
*/
|
|
191
|
+
viewportWidth: number
|
|
192
|
+
|
|
193
|
+
//
|
|
194
|
+
// animations
|
|
195
|
+
//
|
|
196
|
+
/**
|
|
197
|
+
* The distance in pixels an element must exceed over
|
|
198
|
+
* time to be considered animating.
|
|
199
|
+
*/
|
|
200
|
+
animationDistanceThreshold: number
|
|
201
|
+
/**
|
|
202
|
+
* Whether to wait for elements to finish animating before executing commands.
|
|
203
|
+
*/
|
|
204
|
+
waitForAnimations: boolean
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* All options that one can pass to "cypress.run"
|
|
209
|
+
* @see https://on.cypress.io/module-api#cypress-run
|
|
210
|
+
* @example
|
|
211
|
+
```
|
|
212
|
+
const cypress = require('cypress')
|
|
213
|
+
cypress.run({
|
|
214
|
+
reporter: 'junit',
|
|
215
|
+
browser: 'chrome',
|
|
216
|
+
config: {
|
|
217
|
+
baseUrl: 'http://localhost:8080',
|
|
218
|
+
chromeWebSecurity: false,
|
|
219
|
+
},
|
|
220
|
+
env: {
|
|
221
|
+
foo: 'bar',
|
|
222
|
+
baz: 'quux',
|
|
223
|
+
}
|
|
224
|
+
})
|
|
225
|
+
```
|
|
226
|
+
*/
|
|
227
|
+
interface CypressRunOptions {
|
|
228
|
+
/**
|
|
229
|
+
* Specify different browser to run tests in, either by name or by filesystem path
|
|
230
|
+
*/
|
|
231
|
+
browser: string
|
|
232
|
+
/**
|
|
233
|
+
* Specify a unique identifier for a run to enable grouping or parallelization
|
|
234
|
+
*/
|
|
235
|
+
ciBuildId: string
|
|
236
|
+
/**
|
|
237
|
+
* Specify configuration
|
|
238
|
+
*/
|
|
239
|
+
config: Partial<CypressConfiguration>
|
|
240
|
+
/**
|
|
241
|
+
* Specify environment variables
|
|
242
|
+
*/
|
|
243
|
+
env: object
|
|
244
|
+
/**
|
|
245
|
+
* Group recorded tests together under a single run name
|
|
246
|
+
*/
|
|
247
|
+
group: string
|
|
248
|
+
/**
|
|
249
|
+
* Display the Electron browser instead of running headlessly
|
|
250
|
+
*/
|
|
251
|
+
headed: boolean
|
|
252
|
+
/**
|
|
253
|
+
* Specify your secret record key
|
|
254
|
+
*/
|
|
255
|
+
key: string
|
|
256
|
+
/**
|
|
257
|
+
* Keep Cypress open after all tests run
|
|
258
|
+
*/
|
|
259
|
+
noExit: boolean
|
|
260
|
+
/**
|
|
261
|
+
* Run recorded specs in parallel across multiple machines
|
|
262
|
+
*/
|
|
263
|
+
parallel: boolean
|
|
264
|
+
/**
|
|
265
|
+
* Override default port
|
|
266
|
+
*/
|
|
267
|
+
port: number
|
|
268
|
+
/**
|
|
269
|
+
* Path to a specific project
|
|
270
|
+
*/
|
|
271
|
+
project: string
|
|
272
|
+
/**
|
|
273
|
+
* Whether to record the test run
|
|
274
|
+
*/
|
|
275
|
+
record: boolean
|
|
276
|
+
/**
|
|
277
|
+
* Specify a mocha reporter
|
|
278
|
+
*/
|
|
279
|
+
reporter: string
|
|
280
|
+
/**
|
|
281
|
+
* Specify mocha reporter options
|
|
282
|
+
*/
|
|
283
|
+
reporterOptions: any
|
|
284
|
+
/**
|
|
285
|
+
* Specify the specs to run
|
|
286
|
+
*/
|
|
287
|
+
spec: string
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* All options that one can pass to "cypress.open"
|
|
292
|
+
* @see https://on.cypress.io/module-api#cypress-open
|
|
293
|
+
* @example
|
|
294
|
+
```
|
|
295
|
+
const cypress = require('cypress')
|
|
296
|
+
cypress.open({
|
|
297
|
+
env: {
|
|
298
|
+
username: 'Joe Doe',
|
|
299
|
+
email: 'joe@acme.co'
|
|
300
|
+
},
|
|
301
|
+
project: '~/demos/my-project'
|
|
302
|
+
})
|
|
303
|
+
```
|
|
304
|
+
*/
|
|
305
|
+
interface CypressOpenOptions {
|
|
306
|
+
/**
|
|
307
|
+
* Specify a filesystem path to a custom browser
|
|
308
|
+
*/
|
|
309
|
+
browser: string
|
|
310
|
+
/**
|
|
311
|
+
* Specify configuration
|
|
312
|
+
*/
|
|
313
|
+
config: Partial<CypressConfiguration>
|
|
314
|
+
/**
|
|
315
|
+
* Open Cypress in detached mode
|
|
316
|
+
*/
|
|
317
|
+
detached: boolean
|
|
318
|
+
/**
|
|
319
|
+
* Specify environment variables
|
|
320
|
+
*/
|
|
321
|
+
env: object
|
|
322
|
+
/**
|
|
323
|
+
* Run in global mode
|
|
324
|
+
*/
|
|
325
|
+
global: boolean
|
|
326
|
+
/**
|
|
327
|
+
* Override default port
|
|
328
|
+
*/
|
|
329
|
+
port: number
|
|
330
|
+
/**
|
|
331
|
+
* Path to a specific project
|
|
332
|
+
*/
|
|
333
|
+
project: string
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
// small utility types to better express meaning of other types
|
|
337
|
+
type dateTimeISO = string
|
|
338
|
+
type ms = number
|
|
339
|
+
type hookId = string
|
|
340
|
+
type testId = string
|
|
341
|
+
type pixels = number
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Cypress single test result
|
|
345
|
+
*/
|
|
346
|
+
interface TestResult {
|
|
347
|
+
testId: testId
|
|
348
|
+
title: string[]
|
|
349
|
+
state: string
|
|
350
|
+
body: string
|
|
351
|
+
/**
|
|
352
|
+
* Error stack string if there is an error
|
|
353
|
+
*/
|
|
354
|
+
stack: string | null
|
|
355
|
+
/**
|
|
356
|
+
* Error message if there is an error
|
|
357
|
+
*/
|
|
358
|
+
error: string | null
|
|
359
|
+
timings: any
|
|
360
|
+
failedFromHookId: hookId | null
|
|
361
|
+
wallClockStartedAt: dateTimeISO
|
|
362
|
+
wallClockDuration: ms
|
|
363
|
+
videoTimestamp: ms
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Information about a single "before", "beforeEach", "afterEach" and "after" hook.
|
|
368
|
+
*/
|
|
369
|
+
interface HookInformation {
|
|
370
|
+
hookId: hookId
|
|
371
|
+
hookName: 'before' | 'beforeEach' | 'afterEach' | 'after'
|
|
372
|
+
title: string[]
|
|
373
|
+
body: string
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Information about a single screenshot.
|
|
378
|
+
*/
|
|
379
|
+
interface ScreenshotInformation {
|
|
380
|
+
screenshotId: string
|
|
381
|
+
name: string
|
|
382
|
+
testId: testId
|
|
383
|
+
takenAt: dateTimeISO
|
|
384
|
+
/**
|
|
385
|
+
* Absolute path to the saved image
|
|
386
|
+
*/
|
|
387
|
+
path: string
|
|
388
|
+
height: pixels
|
|
389
|
+
width: pixels
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Cypress test run result for a single spec.
|
|
394
|
+
*/
|
|
395
|
+
interface RunResult {
|
|
396
|
+
/**
|
|
397
|
+
* Accurate test results collected by Cypress.
|
|
398
|
+
*/
|
|
399
|
+
stats: {
|
|
400
|
+
suites: number
|
|
401
|
+
tests: number
|
|
402
|
+
passes: number
|
|
403
|
+
pending: number
|
|
404
|
+
skipped: number
|
|
405
|
+
failures: number
|
|
406
|
+
wallClockStartedAt: dateTimeISO
|
|
407
|
+
wallClockEndedAt: dateTimeISO
|
|
408
|
+
wallClockDuration: ms
|
|
409
|
+
},
|
|
410
|
+
/**
|
|
411
|
+
* Reporter name like "spec"
|
|
412
|
+
*/
|
|
413
|
+
reporter: string
|
|
414
|
+
/**
|
|
415
|
+
* This is controlled by the reporter, and Cypress cannot guarantee
|
|
416
|
+
* the properties. Usually this object has suites, tests, passes, etc
|
|
417
|
+
*/
|
|
418
|
+
reporterStats: object
|
|
419
|
+
hooks: HookInformation[]
|
|
420
|
+
tests: TestResult[]
|
|
421
|
+
error: string | null
|
|
422
|
+
video: string | null
|
|
423
|
+
screenshots: ScreenshotInformation[]
|
|
424
|
+
/**
|
|
425
|
+
* information about the spec test file.
|
|
426
|
+
*/
|
|
427
|
+
spec: {
|
|
428
|
+
/**
|
|
429
|
+
* filename like "spec.js"
|
|
430
|
+
*/
|
|
431
|
+
name: string
|
|
432
|
+
/**
|
|
433
|
+
* name relative to the project root, like "cypress/integration/spec.js"
|
|
434
|
+
*/
|
|
435
|
+
relative: string
|
|
436
|
+
/**
|
|
437
|
+
* resolved filename of the spec
|
|
438
|
+
*/
|
|
439
|
+
absolute: string
|
|
440
|
+
},
|
|
441
|
+
shouldUploadVideo: boolean
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Results returned by the test run.
|
|
446
|
+
*/
|
|
447
|
+
interface CypressRunResult {
|
|
448
|
+
startedTestsAt: dateTimeISO
|
|
449
|
+
endedTestsAt: dateTimeISO
|
|
450
|
+
totalDuration: ms
|
|
451
|
+
totalSuites: number
|
|
452
|
+
totalTests: number
|
|
453
|
+
totalFailed: number
|
|
454
|
+
totalPassed: number
|
|
455
|
+
totalPending: number
|
|
456
|
+
totalSkipped: number
|
|
457
|
+
runs: RunResult[]
|
|
458
|
+
browserPath: string
|
|
459
|
+
browserName: string
|
|
460
|
+
browserVersion: string
|
|
461
|
+
osName: string
|
|
462
|
+
osVersion: string
|
|
463
|
+
cypressVersion: string
|
|
464
|
+
// TODO add resolved object to the configuration
|
|
465
|
+
config: CypressConfiguration
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* Cypress NPM module interface.
|
|
470
|
+
* @see https://on.cypress.io/module-api
|
|
471
|
+
* @example
|
|
472
|
+
```
|
|
473
|
+
const cypress = require('cypress')
|
|
474
|
+
cypress.run().then(results => ...)
|
|
475
|
+
```
|
|
476
|
+
*/
|
|
477
|
+
interface CypressNpmApi {
|
|
478
|
+
/**
|
|
479
|
+
* Execute a headless Cypress test run.
|
|
480
|
+
* @see https://on.cypress.io/module-api#cypress-run
|
|
481
|
+
* @example
|
|
482
|
+
```
|
|
483
|
+
const cypress = require('cypress')
|
|
484
|
+
// runs all spec files matching a wildcard
|
|
485
|
+
cypress.run({
|
|
486
|
+
spec: 'cypress/integration/admin*-spec.js'
|
|
487
|
+
}).then(results => {
|
|
488
|
+
// inspect results object
|
|
489
|
+
})
|
|
490
|
+
```
|
|
491
|
+
*/
|
|
492
|
+
run(options?: Partial<CypressRunOptions>): Promise<CypressRunResult>,
|
|
493
|
+
/**
|
|
494
|
+
* Opens Cypress GUI. Resolves with void when the
|
|
495
|
+
* GUI is closed.
|
|
496
|
+
* @see https://on.cypress.io/module-api#cypress-open
|
|
497
|
+
*/
|
|
498
|
+
open(options?: Partial<CypressOpenOptions>): Promise<void>
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
// export Cypress NPM module interface
|
|
502
|
+
const cypress: CypressNpmApi
|
|
503
|
+
export = cypress
|
|
504
|
+
}
|