/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/jasmine@6.0.0-alpha.2/lib/jasmine.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
const ExitHandler=require("./exit_handler"),regexSpecFilter=require("./filters/regex_spec_filter"),pathSpecFilter=require("./filters/path_spec_filter"),RunnerBase=require("./runner_base");class Jasmine extends RunnerBase{constructor(e){super(e=e||{});const t=e.jasmineCore||require("jasmine-core");!1===e.globals?this.jasmine=t.noGlobals().jasmine:this.jasmine=t.boot(),this.env=this.jasmine.getEnv({suppressLoadErrors:!0}),this.reportersCount=0,this.exit=process.exit,this.addReporter(this.reporter_),this.coreVersion=function(){return t.version()},this.exitOnCompletion=!0}randomizeTests(e){this.env.configure({random:e})}seed(e){this.env.configure({seed:e})}addReporter(e){this.env.addReporter(e),this.reportersCount++}clearReporters(){this.env.clearReporters(),this.reportersCount=0}provideFallbackReporter(e){this.env.provideFallbackReporter(e)}addMatchers(e){this.env.addMatchers(e)}async loadSpecs(){await this._loadFiles(this.specFiles)}async loadHelpers(){await this._loadFiles(this.helperFiles)}async _loadFiles(e){for(const t of e)await this.loader.load(t)}async loadRequires(){await this._loadFiles(this.requires)}configureEnv(e){this.env.configure(e)}stopSpecOnExpectationFailure(e){this.env.configure({stopSpecOnExpectationFailure:e})}stopOnSpecFailure(e){this.env.configure({stopOnSpecFailure:e})}async execute(e,t){if(await this.loadRequires(),await this.loadHelpers(),this.defaultReporterConfigured||this.configureDefaultReporter({showColors:this.showingColors,alwaysListPendingSpecs:this.alwaysListPendingSpecs_}),t)if("string"==typeof t||t instanceof RegExp)this.env.configure({specFilter:regexSpecFilter(t)});else{if(!t.path)throw new Error("Unrecognized filter type");this.env.configure({specFilter:pathSpecFilter(t.path)})}e&&e.length>0&&(this.isVerbose_&&console.log("Overriding previous specDir and specFiles because a list of spec files was provided on the command line or as an argument to Jasmine#execute"),this.specDir="",this.specFiles=[],this.addMatchingSpecFiles(e));const i=new ExitHandler((()=>this.exit(4)));let s;i.install();try{await this.withinGlobalSetup_((async()=>{await this.loadSpecs(),s=await this.env.execute()}))}finally{await this.flushOutput(),i.uninstall()}return this.exitOnCompletion&&this.exit(RunnerBase.exitCodeForStatus(s.overallStatus)),s}async enumerate(){return await this.loadRequires(),await this.loadHelpers(),await this.loadSpecs(),this.env.topSuite().children.map(toEnumerateResult)}}function toEnumerateResult(e){const t={description:e.description};return void 0===e.children?t.type="spec":(t.type="suite",t.children=e.children.map(toEnumerateResult)),t}module.exports=Jasmine,module.exports.ConsoleReporter=require("./reporters/console_reporter");
//# sourceMappingURL=/sm/e892b0890bc0dfded581cd9f1675977476858a3860faf3c18403b2ec79ee5955.map