{"version":3,"file":"runner.cjs","sources":["../../../src/run-assertions/runner.js"],"sourcesContent":["/**\n * Fauji runner: Main orchestrator for CLI, test discovery, execution, cache, and environment setup.\n * This module wires together the core modules for running tests from the CLI or programmatically.\n * \n * Usage:\n * 1. Parse CLI arguments (handled in bin/runner)\n * 2. Use findTestFiles(options) to discover test files (async)\n * 3. Use runTestFiles(files, options) to execute tests with a worker pool (async)\n * 4. Use loadCache/saveCache for test run caching (async)\n * 5. Call setupJsdomIfNeeded(options) if needed\n */\nimport { findTestFiles } from './test-discovery.js';\nimport { runTestFiles } from './test-execution.js';\nimport { loadCache, saveCache } from './cache.js';\nimport { setupJsdomIfNeeded } from './env-setup.js';\n\nexport async function runner(options) {\n  await setupJsdomIfNeeded(options);\n  const files = await findTestFiles(options);\n  await runTestFiles(files, options);\n}\n\nexport default {\n  findTestFiles,\n  runTestFiles,\n  loadCache,\n  saveCache,\n  setupJsdomIfNeeded,\n};\n"],"names":["setupJsdomIfNeeded","findTestFiles","runTestFiles"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMO,eAAe,MAAM,CAAC,OAAO,EAAE;AACtC,EAAE,MAAMA,2BAAkB,CAAC,OAAO,CAAC;AACnC,EAAE,MAAM,KAAK,GAAG,MAAMC,2BAAa,CAAC,OAAO,CAAC;AAC5C,EAAE,MAAMC,0BAAY,CAAC,KAAK,EAAE,OAAO,CAAC;AACpC;;;;"}