{"version":3,"sources":["jsdelivr-header.js","/npm/@lando/leia@1.0.0-beta.4/lib/leia.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAEA,OAAO,QAAU,MACf,WAAA,GAAe,CAaf,IAAA,CAAK,EAAU,GACb,OAAO,QAAQ,SAAR,CAAkB,EAAU,EACrC,CAWA,QAAA,CAAS,EAAO,GACd,OAAO,QAAQ,aAAR,CAAsB,EAAO,EACtC,CAgBA,KAAA,CAAM,EAAO,GACX,OAAO,QAAQ,UAAR,CAAmB,EAAO,EACnC,CAUA,GAAA,CAAI,EAAO,GACT,OAAO,QAAQ,QAAR,CAAiB,EAAO,EACjC","file":"/npm/@lando/leia@1.0.0-beta.4/lib/leia.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@lando/leia@1.0.0-beta.4/lib/leia.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict';\n\nmodule.exports = class Leia {\n  constructor() {};\n\n  /**\n   * Takes an array of glob patterns and returns a unique list of all the matching files\n   *\n   * @since 0.5.0\n   * @param {Array} patterns An array of GLOB patterns\n   * @param {Array} ignore An array of GLOB patterns\n   * @return {Array} An array of unique absolute filepaths\n   * @example\n   * const find = require(./find');\n   * const files = find(['./examples/*.md']);\n   */\n  find(patterns, ignore) {\n    return require('./find')(patterns, ignore);\n  }\n\n  /**\n   * Takes an array of parsed leia test metadata and generates mocha cli tests\n   *\n   * @since 0.5.0\n   * @param {Array} tests An array of parsed leia test metadata\n   * @param {Object} [options] Options to pass to the dot template engine\n   * @param {Boolean} [options.strip=false] Strips things\n   * @return {Array} An array of unique absolute filepaths\n   */\n  generate(tests, options) {\n    return require('./generate')(tests, options);\n  }\n\n  /**\n   * Takes an array of absolute pathed markdown files and generates leia testing metadata\n   *\n   * @since 0.5.0\n   * @param {Array} files An array of absolute paths to markdown files\n   * @param {Object} [options] An array of options\n   * @param {Array} [options.cleanupHeader=['Clean']] An array of words that h2 headers can start with to be flagged as cleanup commands\n   * @param {Integer} [options.retry=3] Amount of times to retry each test\n   * @param {Array} [options.setupHeader=['Setup']] An array of words h2 headers can start with to be flagged as setup commands\n   * @param {String} [options.shell=autodetected] A string containing the shell to run tests with\n   * @param {Boolean} [options.stdin=false] A boolean to attach stdin or not\n   * @param {Array} [options.testHeader=['Test']] An array of words h2 headers can start with to flagged as test commands\n   * @return {Object} An object of parsed leia test metadate that you can use to generate mocha tests\n   */\n  parse(files, options) {\n    return require('./parse')(files, options);\n  }\n\n  /**\n   * Runs tests\n   *\n   * @since 0.5.0\n   * @param {Array} tests An array of absolute paths to generated leia test files\n   * @param {Object} [options] An array of Mocha options\n   * @return {Object} A test loaded mocha instance\n   */\n  run(tests, options) {\n    return require('./run')(tests, options);\n  }\n};\n"]}