@jcheesepkg/nanobot 0.8.7 → 0.8.9
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/dist/_virtual/_rolldown/runtime.mjs +7 -0
- package/dist/agent/tools/flex.test.d.mts +1 -0
- package/dist/agent/tools/flex.test.mjs +258 -0
- package/dist/agent/tools/flex.test.mjs.map +1 -0
- package/dist/channels/line.d.mts +3 -1
- package/dist/channels/line.d.mts.map +1 -1
- package/dist/channels/line.mjs +56 -6
- package/dist/channels/line.mjs.map +1 -1
- package/dist/channels/line.test.d.mts +1 -0
- package/dist/channels/line.test.mjs +202 -0
- package/dist/channels/line.test.mjs.map +1 -0
- package/dist/config/schema.d.mts +18 -18
- package/dist/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +78 -0
- package/dist/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +1 -0
- package/dist/node_modules/@vitest/expect/dist/index.mjs +1257 -0
- package/dist/node_modules/@vitest/expect/dist/index.mjs.map +1 -0
- package/dist/node_modules/@vitest/pretty-format/dist/index.mjs +815 -0
- package/dist/node_modules/@vitest/pretty-format/dist/index.mjs.map +1 -0
- package/dist/node_modules/@vitest/runner/dist/chunk-tasks.mjs +43 -0
- package/dist/node_modules/@vitest/runner/dist/chunk-tasks.mjs.map +1 -0
- package/dist/node_modules/@vitest/runner/dist/index.mjs +563 -0
- package/dist/node_modules/@vitest/runner/dist/index.mjs.map +1 -0
- package/dist/node_modules/@vitest/runner/dist/utils.mjs +3 -0
- package/dist/node_modules/@vitest/snapshot/dist/index.mjs +1736 -0
- package/dist/node_modules/@vitest/snapshot/dist/index.mjs.map +1 -0
- package/dist/node_modules/@vitest/snapshot/node_modules/pathe/dist/shared/pathe.ff20891b.mjs +82 -0
- package/dist/node_modules/@vitest/snapshot/node_modules/pathe/dist/shared/pathe.ff20891b.mjs.map +1 -0
- package/dist/node_modules/@vitest/spy/dist/index.mjs +139 -0
- package/dist/node_modules/@vitest/spy/dist/index.mjs.map +1 -0
- package/dist/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.mjs +119 -0
- package/dist/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.mjs.map +1 -0
- package/dist/node_modules/@vitest/utils/dist/diff.mjs +1227 -0
- package/dist/node_modules/@vitest/utils/dist/diff.mjs.map +1 -0
- package/dist/node_modules/@vitest/utils/dist/error.mjs +92 -0
- package/dist/node_modules/@vitest/utils/dist/error.mjs.map +1 -0
- package/dist/node_modules/@vitest/utils/dist/helpers.mjs +113 -0
- package/dist/node_modules/@vitest/utils/dist/helpers.mjs.map +1 -0
- package/dist/node_modules/@vitest/utils/dist/index.mjs +455 -0
- package/dist/node_modules/@vitest/utils/dist/index.mjs.map +1 -0
- package/dist/node_modules/@vitest/utils/dist/source-map.mjs +164 -0
- package/dist/node_modules/@vitest/utils/dist/source-map.mjs.map +1 -0
- package/dist/node_modules/chai/index.mjs +3088 -0
- package/dist/node_modules/chai/index.mjs.map +1 -0
- package/dist/node_modules/loupe/lib/arguments.mjs +12 -0
- package/dist/node_modules/loupe/lib/arguments.mjs.map +1 -0
- package/dist/node_modules/loupe/lib/array.mjs +17 -0
- package/dist/node_modules/loupe/lib/array.mjs.map +1 -0
- package/dist/node_modules/loupe/lib/bigint.mjs +12 -0
- package/dist/node_modules/loupe/lib/bigint.mjs.map +1 -0
- package/dist/node_modules/loupe/lib/class.mjs +16 -0
- package/dist/node_modules/loupe/lib/class.mjs.map +1 -0
- package/dist/node_modules/loupe/lib/date.mjs +14 -0
- package/dist/node_modules/loupe/lib/date.mjs.map +1 -0
- package/dist/node_modules/loupe/lib/error.mjs +35 -0
- package/dist/node_modules/loupe/lib/error.mjs.map +1 -0
- package/dist/node_modules/loupe/lib/function.mjs +13 -0
- package/dist/node_modules/loupe/lib/function.mjs.map +1 -0
- package/dist/node_modules/loupe/lib/helpers.mjs +123 -0
- package/dist/node_modules/loupe/lib/helpers.mjs.map +1 -0
- package/dist/node_modules/loupe/lib/html.mjs +40 -0
- package/dist/node_modules/loupe/lib/html.mjs.map +1 -0
- package/dist/node_modules/loupe/lib/index.mjs +100 -0
- package/dist/node_modules/loupe/lib/index.mjs.map +1 -0
- package/dist/node_modules/loupe/lib/map.mjs +26 -0
- package/dist/node_modules/loupe/lib/map.mjs.map +1 -0
- package/dist/node_modules/loupe/lib/number.mjs +15 -0
- package/dist/node_modules/loupe/lib/number.mjs.map +1 -0
- package/dist/node_modules/loupe/lib/object.mjs +22 -0
- package/dist/node_modules/loupe/lib/object.mjs.map +1 -0
- package/dist/node_modules/loupe/lib/promise.mjs +6 -0
- package/dist/node_modules/loupe/lib/promise.mjs.map +1 -0
- package/dist/node_modules/loupe/lib/regexp.mjs +13 -0
- package/dist/node_modules/loupe/lib/regexp.mjs.map +1 -0
- package/dist/node_modules/loupe/lib/set.mjs +19 -0
- package/dist/node_modules/loupe/lib/set.mjs.map +1 -0
- package/dist/node_modules/loupe/lib/string.mjs +26 -0
- package/dist/node_modules/loupe/lib/string.mjs.map +1 -0
- package/dist/node_modules/loupe/lib/symbol.mjs +9 -0
- package/dist/node_modules/loupe/lib/symbol.mjs.map +1 -0
- package/dist/node_modules/loupe/lib/typedarray.mjs +31 -0
- package/dist/node_modules/loupe/lib/typedarray.mjs.map +1 -0
- package/dist/node_modules/magic-string/dist/magic-string.es.mjs +940 -0
- package/dist/node_modules/magic-string/dist/magic-string.es.mjs.map +1 -0
- package/dist/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.mjs +82 -0
- package/dist/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.mjs.map +1 -0
- package/dist/node_modules/tinyrainbow/dist/node.mjs +9 -0
- package/dist/node_modules/tinyrainbow/dist/node.mjs.map +1 -0
- package/dist/node_modules/tinyspy/dist/index.mjs +79 -0
- package/dist/node_modules/tinyspy/dist/index.mjs.map +1 -0
- package/dist/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.mjs +9 -0
- package/dist/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.mjs.map +1 -0
- package/dist/node_modules/vitest/dist/chunks/date.W2xKR2qe.mjs +51 -0
- package/dist/node_modules/vitest/dist/chunks/date.W2xKR2qe.mjs.map +1 -0
- package/dist/node_modules/vitest/dist/chunks/utils.C8RiOc4B.mjs +49 -0
- package/dist/node_modules/vitest/dist/chunks/utils.C8RiOc4B.mjs.map +1 -0
- package/dist/node_modules/vitest/dist/chunks/vi.DgezovHB.mjs +2425 -0
- package/dist/node_modules/vitest/dist/chunks/vi.DgezovHB.mjs.map +1 -0
- package/package.json +1 -1
- package/skills/skill-creator/SKILL.md +29 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../../node_modules/@vitest/runner/dist/index.js"],"sourcesContent":["import { getSafeTimers, isObject, createDefer, isNegativeNaN, format, objDisplay, objectAttr, toArray, assertTypes, shuffle } from '@vitest/utils';\nimport { parseSingleStack } from '@vitest/utils/source-map';\nimport { c as createChainable, b as createFileTask, a as calculateSuiteHash, s as someTasksAreOnly, i as interpretTaskModes, l as limitConcurrency, p as partitionSuiteChildren, n as hasTests, m as hasFailed } from './chunk-tasks.js';\nimport { processError } from '@vitest/utils/error';\nexport { processError } from '@vitest/utils/error';\nimport 'pathe';\n\nclass PendingError extends Error {\n constructor(message, task) {\n super(message);\n this.message = message;\n this.taskId = task.id;\n }\n code = \"VITEST_PENDING\";\n taskId;\n}\n\nconst collectorContext = {\n tasks: [],\n currentSuite: null\n};\nfunction collectTask(task) {\n var _a;\n (_a = collectorContext.currentSuite) == null ? void 0 : _a.tasks.push(task);\n}\nasync function runWithSuite(suite, fn) {\n const prev = collectorContext.currentSuite;\n collectorContext.currentSuite = suite;\n await fn();\n collectorContext.currentSuite = prev;\n}\nfunction withTimeout(fn, timeout, isHook = false) {\n if (timeout <= 0 || timeout === Number.POSITIVE_INFINITY) {\n return fn;\n }\n const { setTimeout, clearTimeout } = getSafeTimers();\n return function runWithTimeout(...args) {\n return Promise.race([\n fn(...args),\n new Promise((resolve, reject) => {\n var _a;\n const timer = setTimeout(() => {\n clearTimeout(timer);\n reject(new Error(makeTimeoutMsg(isHook, timeout)));\n }, timeout);\n (_a = timer.unref) == null ? void 0 : _a.call(timer);\n })\n ]);\n };\n}\nfunction createTestContext(test, runner) {\n var _a;\n const context = function() {\n throw new Error(\"done() callback is deprecated, use promise instead\");\n };\n context.task = test;\n context.skip = () => {\n test.pending = true;\n throw new PendingError(\"test is skipped; abort execution\", test);\n };\n context.onTestFailed = (fn) => {\n test.onFailed || (test.onFailed = []);\n test.onFailed.push(fn);\n };\n context.onTestFinished = (fn) => {\n test.onFinished || (test.onFinished = []);\n test.onFinished.push(fn);\n };\n return ((_a = runner.extendTaskContext) == null ? void 0 : _a.call(runner, context)) || context;\n}\nfunction makeTimeoutMsg(isHook, timeout) {\n return `${isHook ? \"Hook\" : \"Test\"} timed out in ${timeout}ms.\nIf this is a long-running ${isHook ? \"hook\" : \"test\"}, pass a timeout value as the last argument or configure it globally with \"${isHook ? \"hookTimeout\" : \"testTimeout\"}\".`;\n}\n\nconst fnMap = /* @__PURE__ */ new WeakMap();\nconst fixtureMap = /* @__PURE__ */ new WeakMap();\nconst hooksMap = /* @__PURE__ */ new WeakMap();\nfunction setFn(key, fn) {\n fnMap.set(key, fn);\n}\nfunction getFn(key) {\n return fnMap.get(key);\n}\nfunction setFixture(key, fixture) {\n fixtureMap.set(key, fixture);\n}\nfunction getFixture(key) {\n return fixtureMap.get(key);\n}\nfunction setHooks(key, hooks) {\n hooksMap.set(key, hooks);\n}\nfunction getHooks(key) {\n return hooksMap.get(key);\n}\n\nfunction mergeContextFixtures(fixtures, context = {}) {\n const fixtureOptionKeys = [\"auto\"];\n const fixtureArray = Object.entries(fixtures).map(\n ([prop, value]) => {\n const fixtureItem = { value };\n if (Array.isArray(value) && value.length >= 2 && isObject(value[1]) && Object.keys(value[1]).some((key) => fixtureOptionKeys.includes(key))) {\n Object.assign(fixtureItem, value[1]);\n fixtureItem.value = value[0];\n }\n fixtureItem.prop = prop;\n fixtureItem.isFn = typeof fixtureItem.value === \"function\";\n return fixtureItem;\n }\n );\n if (Array.isArray(context.fixtures)) {\n context.fixtures = context.fixtures.concat(fixtureArray);\n } else {\n context.fixtures = fixtureArray;\n }\n fixtureArray.forEach((fixture) => {\n if (fixture.isFn) {\n const usedProps = getUsedProps(fixture.value);\n if (usedProps.length) {\n fixture.deps = context.fixtures.filter(\n ({ prop }) => prop !== fixture.prop && usedProps.includes(prop)\n );\n }\n }\n });\n return context;\n}\nconst fixtureValueMaps = /* @__PURE__ */ new Map();\nconst cleanupFnArrayMap = /* @__PURE__ */ new Map();\nasync function callFixtureCleanup(context) {\n const cleanupFnArray = cleanupFnArrayMap.get(context) ?? [];\n for (const cleanup of cleanupFnArray.reverse()) {\n await cleanup();\n }\n cleanupFnArrayMap.delete(context);\n}\nfunction withFixtures(fn, testContext) {\n return (hookContext) => {\n const context = hookContext || testContext;\n if (!context) {\n return fn({});\n }\n const fixtures = getFixture(context);\n if (!(fixtures == null ? void 0 : fixtures.length)) {\n return fn(context);\n }\n const usedProps = getUsedProps(fn);\n const hasAutoFixture = fixtures.some(({ auto }) => auto);\n if (!usedProps.length && !hasAutoFixture) {\n return fn(context);\n }\n if (!fixtureValueMaps.get(context)) {\n fixtureValueMaps.set(context, /* @__PURE__ */ new Map());\n }\n const fixtureValueMap = fixtureValueMaps.get(context);\n if (!cleanupFnArrayMap.has(context)) {\n cleanupFnArrayMap.set(context, []);\n }\n const cleanupFnArray = cleanupFnArrayMap.get(context);\n const usedFixtures = fixtures.filter(\n ({ prop, auto }) => auto || usedProps.includes(prop)\n );\n const pendingFixtures = resolveDeps(usedFixtures);\n if (!pendingFixtures.length) {\n return fn(context);\n }\n async function resolveFixtures() {\n for (const fixture of pendingFixtures) {\n if (fixtureValueMap.has(fixture)) {\n continue;\n }\n const resolvedValue = fixture.isFn ? await resolveFixtureFunction(fixture.value, context, cleanupFnArray) : fixture.value;\n context[fixture.prop] = resolvedValue;\n fixtureValueMap.set(fixture, resolvedValue);\n cleanupFnArray.unshift(() => {\n fixtureValueMap.delete(fixture);\n });\n }\n }\n return resolveFixtures().then(() => fn(context));\n };\n}\nasync function resolveFixtureFunction(fixtureFn, context, cleanupFnArray) {\n const useFnArgPromise = createDefer();\n let isUseFnArgResolved = false;\n const fixtureReturn = fixtureFn(context, async (useFnArg) => {\n isUseFnArgResolved = true;\n useFnArgPromise.resolve(useFnArg);\n const useReturnPromise = createDefer();\n cleanupFnArray.push(async () => {\n useReturnPromise.resolve();\n await fixtureReturn;\n });\n await useReturnPromise;\n }).catch((e) => {\n if (!isUseFnArgResolved) {\n useFnArgPromise.reject(e);\n return;\n }\n throw e;\n });\n return useFnArgPromise;\n}\nfunction resolveDeps(fixtures, depSet = /* @__PURE__ */ new Set(), pendingFixtures = []) {\n fixtures.forEach((fixture) => {\n if (pendingFixtures.includes(fixture)) {\n return;\n }\n if (!fixture.isFn || !fixture.deps) {\n pendingFixtures.push(fixture);\n return;\n }\n if (depSet.has(fixture)) {\n throw new Error(\n `Circular fixture dependency detected: ${fixture.prop} <- ${[...depSet].reverse().map((d) => d.prop).join(\" <- \")}`\n );\n }\n depSet.add(fixture);\n resolveDeps(fixture.deps, depSet, pendingFixtures);\n pendingFixtures.push(fixture);\n depSet.clear();\n });\n return pendingFixtures;\n}\nfunction getUsedProps(fn) {\n let fnString = fn.toString();\n if (/__async\\(this, (?:null|arguments|\\[[_0-9, ]*\\]), function\\*/.test(fnString)) {\n fnString = fnString.split(\"__async(this,\")[1];\n }\n const match = fnString.match(/[^(]*\\(([^)]*)/);\n if (!match) {\n return [];\n }\n const args = splitByComma(match[1]);\n if (!args.length) {\n return [];\n }\n let first = args[0];\n if (\"__VITEST_FIXTURE_INDEX__\" in fn) {\n first = args[fn.__VITEST_FIXTURE_INDEX__];\n if (!first) {\n return [];\n }\n }\n if (!(first.startsWith(\"{\") && first.endsWith(\"}\"))) {\n throw new Error(\n `The first argument inside a fixture must use object destructuring pattern, e.g. ({ test } => {}). Instead, received \"${first}\".`\n );\n }\n const _first = first.slice(1, -1).replace(/\\s/g, \"\");\n const props = splitByComma(_first).map((prop) => {\n return prop.replace(/:.*|=.*/g, \"\");\n });\n const last = props.at(-1);\n if (last && last.startsWith(\"...\")) {\n throw new Error(\n `Rest parameters are not supported in fixtures, received \"${last}\".`\n );\n }\n return props;\n}\nfunction splitByComma(s) {\n const result = [];\n const stack = [];\n let start = 0;\n for (let i = 0; i < s.length; i++) {\n if (s[i] === \"{\" || s[i] === \"[\") {\n stack.push(s[i] === \"{\" ? \"}\" : \"]\");\n } else if (s[i] === stack[stack.length - 1]) {\n stack.pop();\n } else if (!stack.length && s[i] === \",\") {\n const token = s.substring(start, i).trim();\n if (token) {\n result.push(token);\n }\n start = i + 1;\n }\n }\n const lastToken = s.substring(start).trim();\n if (lastToken) {\n result.push(lastToken);\n }\n return result;\n}\n\nlet _test;\nfunction setCurrentTest(test) {\n _test = test;\n}\nfunction getCurrentTest() {\n return _test;\n}\n\nconst suite = createSuite();\nconst test = createTest(function(name, optionsOrFn, optionsOrTest) {\n if (getCurrentTest()) {\n throw new Error(\n 'Calling the test function inside another test function is not allowed. Please put it inside \"describe\" or \"suite\" so it can be properly collected.'\n );\n }\n getCurrentSuite().test.fn.call(\n this,\n formatName(name),\n optionsOrFn,\n optionsOrTest\n );\n});\nconst describe = suite;\nconst it = test;\nlet runner;\nlet defaultSuite;\nlet currentTestFilepath;\nfunction assert(condition, message) {\n if (!condition) {\n throw new Error(`Vitest failed to find ${message}. This is a bug in Vitest. Please, open an issue with reproduction.`);\n }\n}\nfunction getDefaultSuite() {\n assert(defaultSuite, \"the default suite\");\n return defaultSuite;\n}\nfunction getTestFilepath() {\n return currentTestFilepath;\n}\nfunction getRunner() {\n assert(runner, \"the runner\");\n return runner;\n}\nfunction createDefaultSuite(runner2) {\n const config = runner2.config.sequence;\n const api = config.shuffle ? suite.shuffle : suite;\n return api(\"\", { concurrent: config.concurrent }, () => {\n });\n}\nfunction clearCollectorContext(filepath, currentRunner) {\n if (!defaultSuite) {\n defaultSuite = createDefaultSuite(currentRunner);\n }\n runner = currentRunner;\n currentTestFilepath = filepath;\n collectorContext.tasks.length = 0;\n defaultSuite.clear();\n collectorContext.currentSuite = defaultSuite;\n}\nfunction getCurrentSuite() {\n const currentSuite = collectorContext.currentSuite || defaultSuite;\n assert(currentSuite, \"the current suite\");\n return currentSuite;\n}\nfunction createSuiteHooks() {\n return {\n beforeAll: [],\n afterAll: [],\n beforeEach: [],\n afterEach: []\n };\n}\nfunction parseArguments(optionsOrFn, optionsOrTest) {\n let options = {};\n let fn = () => {\n };\n if (typeof optionsOrTest === \"object\") {\n if (typeof optionsOrFn === \"object\") {\n throw new TypeError(\n \"Cannot use two objects as arguments. Please provide options and a function callback in that order.\"\n );\n }\n options = optionsOrTest;\n } else if (typeof optionsOrTest === \"number\") {\n options = { timeout: optionsOrTest };\n } else if (typeof optionsOrFn === \"object\") {\n options = optionsOrFn;\n }\n if (typeof optionsOrFn === \"function\") {\n if (typeof optionsOrTest === \"function\") {\n throw new TypeError(\n \"Cannot use two functions as arguments. Please use the second argument for options.\"\n );\n }\n fn = optionsOrFn;\n } else if (typeof optionsOrTest === \"function\") {\n fn = optionsOrTest;\n }\n return {\n options,\n handler: fn\n };\n}\nfunction createSuiteCollector(name, factory = () => {\n}, mode, shuffle, each, suiteOptions) {\n const tasks = [];\n const factoryQueue = [];\n let suite2;\n initSuite(true);\n const task = function(name2 = \"\", options = {}) {\n const task2 = {\n id: \"\",\n name: name2,\n suite: void 0,\n each: options.each,\n fails: options.fails,\n context: void 0,\n type: \"custom\",\n file: void 0,\n retry: options.retry ?? runner.config.retry,\n repeats: options.repeats,\n mode: options.only ? \"only\" : options.skip ? \"skip\" : options.todo ? \"todo\" : \"run\",\n meta: options.meta ?? /* @__PURE__ */ Object.create(null)\n };\n const handler = options.handler;\n if (options.concurrent || !options.sequential && runner.config.sequence.concurrent) {\n task2.concurrent = true;\n }\n if (shuffle) {\n task2.shuffle = true;\n }\n const context = createTestContext(task2, runner);\n Object.defineProperty(task2, \"context\", {\n value: context,\n enumerable: false\n });\n setFixture(context, options.fixtures);\n if (handler) {\n setFn(\n task2,\n withTimeout(\n withAwaitAsyncAssetions(withFixtures(handler, context), task2),\n (options == null ? void 0 : options.timeout) ?? runner.config.testTimeout\n )\n );\n }\n if (runner.config.includeTaskLocation) {\n const limit = Error.stackTraceLimit;\n Error.stackTraceLimit = 15;\n const error = new Error(\"stacktrace\").stack;\n Error.stackTraceLimit = limit;\n const stack = findTestFileStackTrace(error, task2.each ?? false);\n if (stack) {\n task2.location = stack;\n }\n }\n tasks.push(task2);\n return task2;\n };\n const test2 = createTest(function(name2, optionsOrFn, optionsOrTest) {\n let { options, handler } = parseArguments(optionsOrFn, optionsOrTest);\n if (typeof suiteOptions === \"object\") {\n options = Object.assign({}, suiteOptions, options);\n }\n options.concurrent = this.concurrent || !this.sequential && (options == null ? void 0 : options.concurrent);\n options.sequential = this.sequential || !this.concurrent && (options == null ? void 0 : options.sequential);\n const test3 = task(formatName(name2), {\n ...this,\n ...options,\n handler\n });\n test3.type = \"test\";\n });\n const collector = {\n type: \"collector\",\n name,\n mode,\n options: suiteOptions,\n test: test2,\n tasks,\n collect,\n task,\n clear,\n on: addHook\n };\n function addHook(name2, ...fn) {\n getHooks(suite2)[name2].push(...fn);\n }\n function initSuite(includeLocation) {\n if (typeof suiteOptions === \"number\") {\n suiteOptions = { timeout: suiteOptions };\n }\n suite2 = {\n id: \"\",\n type: \"suite\",\n name,\n mode,\n each,\n file: void 0,\n shuffle,\n tasks: [],\n meta: /* @__PURE__ */ Object.create(null),\n concurrent: suiteOptions == null ? void 0 : suiteOptions.concurrent\n };\n if (runner && includeLocation && runner.config.includeTaskLocation) {\n const limit = Error.stackTraceLimit;\n Error.stackTraceLimit = 15;\n const error = new Error(\"stacktrace\").stack;\n Error.stackTraceLimit = limit;\n const stack = findTestFileStackTrace(error, suite2.each ?? false);\n if (stack) {\n suite2.location = stack;\n }\n }\n setHooks(suite2, createSuiteHooks());\n }\n function clear() {\n tasks.length = 0;\n factoryQueue.length = 0;\n initSuite(false);\n }\n async function collect(file) {\n if (!file) {\n throw new TypeError(\"File is required to collect tasks.\");\n }\n factoryQueue.length = 0;\n if (factory) {\n await runWithSuite(collector, () => factory(test2));\n }\n const allChildren = [];\n for (const i of [...factoryQueue, ...tasks]) {\n allChildren.push(i.type === \"collector\" ? await i.collect(file) : i);\n }\n suite2.file = file;\n suite2.tasks = allChildren;\n allChildren.forEach((task2) => {\n task2.suite = suite2;\n task2.file = file;\n });\n return suite2;\n }\n collectTask(collector);\n return collector;\n}\nfunction withAwaitAsyncAssetions(fn, task) {\n return async (...args) => {\n await fn(...args);\n if (task.promises) {\n const result = await Promise.allSettled(task.promises);\n const errors = result.map((r) => r.status === \"rejected\" ? r.reason : void 0).filter(Boolean);\n if (errors.length) {\n throw errors;\n }\n }\n };\n}\nfunction createSuite() {\n function suiteFn(name, factoryOrOptions, optionsOrFactory = {}) {\n const mode = this.only ? \"only\" : this.skip ? \"skip\" : this.todo ? \"todo\" : \"run\";\n const currentSuite = collectorContext.currentSuite || defaultSuite;\n let { options, handler: factory } = parseArguments(\n factoryOrOptions,\n optionsOrFactory\n );\n const isConcurrentSpecified = options.concurrent || this.concurrent || options.sequential === false;\n const isSequentialSpecified = options.sequential || this.sequential || options.concurrent === false;\n if (currentSuite == null ? void 0 : currentSuite.options) {\n options = { ...currentSuite.options, ...options };\n }\n const isConcurrent = isConcurrentSpecified || options.concurrent && !isSequentialSpecified;\n const isSequential = isSequentialSpecified || options.sequential && !isConcurrentSpecified;\n options.concurrent = isConcurrent && !isSequential;\n options.sequential = isSequential && !isConcurrent;\n return createSuiteCollector(\n formatName(name),\n factory,\n mode,\n this.shuffle,\n this.each,\n options\n );\n }\n suiteFn.each = function(cases, ...args) {\n const suite2 = this.withContext();\n this.setContext(\"each\", true);\n if (Array.isArray(cases) && args.length) {\n cases = formatTemplateString(cases, args);\n }\n return (name, optionsOrFn, fnOrOptions) => {\n const _name = formatName(name);\n const arrayOnlyCases = cases.every(Array.isArray);\n const { options, handler } = parseArguments(optionsOrFn, fnOrOptions);\n const fnFirst = typeof optionsOrFn === \"function\";\n cases.forEach((i, idx) => {\n const items = Array.isArray(i) ? i : [i];\n if (fnFirst) {\n if (arrayOnlyCases) {\n suite2(\n formatTitle(_name, items, idx),\n () => handler(...items),\n options\n );\n } else {\n suite2(formatTitle(_name, items, idx), () => handler(i), options);\n }\n } else {\n if (arrayOnlyCases) {\n suite2(formatTitle(_name, items, idx), options, () => handler(...items));\n } else {\n suite2(formatTitle(_name, items, idx), options, () => handler(i));\n }\n }\n });\n this.setContext(\"each\", void 0);\n };\n };\n suiteFn.skipIf = (condition) => condition ? suite.skip : suite;\n suiteFn.runIf = (condition) => condition ? suite : suite.skip;\n return createChainable(\n [\"concurrent\", \"sequential\", \"shuffle\", \"skip\", \"only\", \"todo\"],\n suiteFn\n );\n}\nfunction createTaskCollector(fn, context) {\n const taskFn = fn;\n taskFn.each = function(cases, ...args) {\n const test2 = this.withContext();\n this.setContext(\"each\", true);\n if (Array.isArray(cases) && args.length) {\n cases = formatTemplateString(cases, args);\n }\n return (name, optionsOrFn, fnOrOptions) => {\n const _name = formatName(name);\n const arrayOnlyCases = cases.every(Array.isArray);\n const { options, handler } = parseArguments(optionsOrFn, fnOrOptions);\n const fnFirst = typeof optionsOrFn === \"function\";\n cases.forEach((i, idx) => {\n const items = Array.isArray(i) ? i : [i];\n if (fnFirst) {\n if (arrayOnlyCases) {\n test2(\n formatTitle(_name, items, idx),\n () => handler(...items),\n options\n );\n } else {\n test2(formatTitle(_name, items, idx), () => handler(i), options);\n }\n } else {\n if (arrayOnlyCases) {\n test2(formatTitle(_name, items, idx), options, () => handler(...items));\n } else {\n test2(formatTitle(_name, items, idx), options, () => handler(i));\n }\n }\n });\n this.setContext(\"each\", void 0);\n };\n };\n taskFn.for = function(cases, ...args) {\n const test2 = this.withContext();\n if (Array.isArray(cases) && args.length) {\n cases = formatTemplateString(cases, args);\n }\n return (name, optionsOrFn, fnOrOptions) => {\n const _name = formatName(name);\n const { options, handler } = parseArguments(optionsOrFn, fnOrOptions);\n cases.forEach((item, idx) => {\n const handlerWrapper = (ctx) => handler(item, ctx);\n handlerWrapper.__VITEST_FIXTURE_INDEX__ = 1;\n handlerWrapper.toString = () => handler.toString();\n test2(formatTitle(_name, toArray(item), idx), options, handlerWrapper);\n });\n };\n };\n taskFn.skipIf = function(condition) {\n return condition ? this.skip : this;\n };\n taskFn.runIf = function(condition) {\n return condition ? this : this.skip;\n };\n taskFn.extend = function(fixtures) {\n const _context = mergeContextFixtures(fixtures, context);\n return createTest(function fn2(name, optionsOrFn, optionsOrTest) {\n getCurrentSuite().test.fn.call(\n this,\n formatName(name),\n optionsOrFn,\n optionsOrTest\n );\n }, _context);\n };\n const _test = createChainable(\n [\"concurrent\", \"sequential\", \"skip\", \"only\", \"todo\", \"fails\"],\n taskFn\n );\n if (context) {\n _test.mergeContext(context);\n }\n return _test;\n}\nfunction createTest(fn, context) {\n return createTaskCollector(fn, context);\n}\nfunction formatName(name) {\n return typeof name === \"string\" ? name : name instanceof Function ? name.name || \"<anonymous>\" : String(name);\n}\nfunction formatTitle(template, items, idx) {\n if (template.includes(\"%#\")) {\n template = template.replace(/%%/g, \"__vitest_escaped_%__\").replace(/%#/g, `${idx}`).replace(/__vitest_escaped_%__/g, \"%%\");\n }\n const count = template.split(\"%\").length - 1;\n if (template.includes(\"%f\")) {\n const placeholders = template.match(/%f/g) || [];\n placeholders.forEach((_, i) => {\n if (isNegativeNaN(items[i]) || Object.is(items[i], -0)) {\n let occurrence = 0;\n template = template.replace(/%f/g, (match) => {\n occurrence++;\n return occurrence === i + 1 ? \"-%f\" : match;\n });\n }\n });\n }\n let formatted = format(template, ...items.slice(0, count));\n if (isObject(items[0])) {\n formatted = formatted.replace(\n /\\$([$\\w.]+)/g,\n // https://github.com/chaijs/chai/pull/1490\n (_, key) => {\n var _a, _b;\n return objDisplay(objectAttr(items[0], key), {\n truncate: (_b = (_a = runner == null ? void 0 : runner.config) == null ? void 0 : _a.chaiConfig) == null ? void 0 : _b.truncateThreshold\n });\n }\n );\n }\n return formatted;\n}\nfunction formatTemplateString(cases, args) {\n const header = cases.join(\"\").trim().replace(/ /g, \"\").split(\"\\n\").map((i) => i.split(\"|\"))[0];\n const res = [];\n for (let i = 0; i < Math.floor(args.length / header.length); i++) {\n const oneCase = {};\n for (let j = 0; j < header.length; j++) {\n oneCase[header[j]] = args[i * header.length + j];\n }\n res.push(oneCase);\n }\n return res;\n}\nfunction findTestFileStackTrace(error, each) {\n const lines = error.split(\"\\n\").slice(1);\n for (const line of lines) {\n const stack = parseSingleStack(line);\n if (stack && stack.file === getTestFilepath()) {\n return {\n line: stack.line,\n /**\n * test.each([1, 2])('name')\n * ^ leads here, but should\n * ^ lead here\n * in source maps it's the same boundary, so it just points to the start of it\n */\n column: each ? stack.column + 1 : stack.column\n };\n }\n }\n}\n\nfunction getDefaultHookTimeout() {\n return getRunner().config.hookTimeout;\n}\nfunction beforeAll(fn, timeout) {\n assertTypes(fn, '\"beforeAll\" callback', [\"function\"]);\n return getCurrentSuite().on(\n \"beforeAll\",\n withTimeout(fn, timeout ?? getDefaultHookTimeout(), true)\n );\n}\nfunction afterAll(fn, timeout) {\n assertTypes(fn, '\"afterAll\" callback', [\"function\"]);\n return getCurrentSuite().on(\n \"afterAll\",\n withTimeout(fn, timeout ?? getDefaultHookTimeout(), true)\n );\n}\nfunction beforeEach(fn, timeout) {\n assertTypes(fn, '\"beforeEach\" callback', [\"function\"]);\n return getCurrentSuite().on(\n \"beforeEach\",\n withTimeout(withFixtures(fn), timeout ?? getDefaultHookTimeout(), true)\n );\n}\nfunction afterEach(fn, timeout) {\n assertTypes(fn, '\"afterEach\" callback', [\"function\"]);\n return getCurrentSuite().on(\n \"afterEach\",\n withTimeout(withFixtures(fn), timeout ?? getDefaultHookTimeout(), true)\n );\n}\nconst onTestFailed = createTestHook(\n \"onTestFailed\",\n (test, handler, timeout) => {\n test.onFailed || (test.onFailed = []);\n test.onFailed.push(\n withTimeout(handler, timeout ?? getDefaultHookTimeout(), true)\n );\n }\n);\nconst onTestFinished = createTestHook(\n \"onTestFinished\",\n (test, handler, timeout) => {\n test.onFinished || (test.onFinished = []);\n test.onFinished.push(\n withTimeout(handler, timeout ?? getDefaultHookTimeout(), true)\n );\n }\n);\nfunction createTestHook(name, handler) {\n return (fn, timeout) => {\n assertTypes(fn, `\"${name}\" callback`, [\"function\"]);\n const current = getCurrentTest();\n if (!current) {\n throw new Error(`Hook ${name}() can only be called inside a test`);\n }\n return handler(current, fn, timeout);\n };\n}\n\nasync function runSetupFiles(config, files, runner) {\n if (config.sequence.setupFiles === \"parallel\") {\n await Promise.all(\n files.map(async (fsPath) => {\n await runner.importFile(fsPath, \"setup\");\n })\n );\n } else {\n for (const fsPath of files) {\n await runner.importFile(fsPath, \"setup\");\n }\n }\n}\n\nconst now$1 = globalThis.performance ? globalThis.performance.now.bind(globalThis.performance) : Date.now;\nasync function collectTests(paths, runner) {\n var _a;\n const files = [];\n const config = runner.config;\n for (const filepath of paths) {\n const file = createFileTask(filepath, config.root, config.name, runner.pool);\n (_a = runner.onCollectStart) == null ? void 0 : _a.call(runner, file);\n clearCollectorContext(filepath, runner);\n try {\n const setupFiles = toArray(config.setupFiles);\n if (setupFiles.length) {\n const setupStart = now$1();\n await runSetupFiles(config, setupFiles, runner);\n const setupEnd = now$1();\n file.setupDuration = setupEnd - setupStart;\n } else {\n file.setupDuration = 0;\n }\n const collectStart = now$1();\n await runner.importFile(filepath, \"collect\");\n const defaultTasks = await getDefaultSuite().collect(file);\n const fileHooks = createSuiteHooks();\n mergeHooks(fileHooks, getHooks(defaultTasks));\n for (const c of [...defaultTasks.tasks, ...collectorContext.tasks]) {\n if (c.type === \"test\" || c.type === \"custom\" || c.type === \"suite\") {\n file.tasks.push(c);\n } else if (c.type === \"collector\") {\n const suite = await c.collect(file);\n if (suite.name || suite.tasks.length) {\n mergeHooks(fileHooks, getHooks(suite));\n file.tasks.push(suite);\n }\n } else {\n c;\n }\n }\n setHooks(file, fileHooks);\n file.collectDuration = now$1() - collectStart;\n } catch (e) {\n const error = processError(e);\n file.result = {\n state: \"fail\",\n errors: [error]\n };\n }\n calculateSuiteHash(file);\n file.tasks.forEach((task) => {\n var _a2;\n if (((_a2 = task.suite) == null ? void 0 : _a2.id) === \"\") {\n delete task.suite;\n }\n });\n const hasOnlyTasks = someTasksAreOnly(file);\n interpretTaskModes(\n file,\n config.testNamePattern,\n hasOnlyTasks,\n false,\n config.allowOnly\n );\n files.push(file);\n }\n return files;\n}\nfunction mergeHooks(baseHooks, hooks) {\n for (const _key in hooks) {\n const key = _key;\n baseHooks[key].push(...hooks[key]);\n }\n return baseHooks;\n}\n\nconst now = globalThis.performance ? globalThis.performance.now.bind(globalThis.performance) : Date.now;\nconst unixNow = Date.now;\nfunction updateSuiteHookState(suite, name, state, runner) {\n var _a;\n if (!suite.result) {\n suite.result = { state: \"run\" };\n }\n if (!((_a = suite.result) == null ? void 0 : _a.hooks)) {\n suite.result.hooks = {};\n }\n const suiteHooks = suite.result.hooks;\n if (suiteHooks) {\n suiteHooks[name] = state;\n updateTask(suite, runner);\n }\n}\nfunction getSuiteHooks(suite, name, sequence) {\n const hooks = getHooks(suite)[name];\n if (sequence === \"stack\" && (name === \"afterAll\" || name === \"afterEach\")) {\n return hooks.slice().reverse();\n }\n return hooks;\n}\nasync function callTestHooks(runner, task, hooks, sequence) {\n if (sequence === \"stack\") {\n hooks = hooks.slice().reverse();\n }\n if (sequence === \"parallel\") {\n try {\n await Promise.all(hooks.map((fn) => fn(task.result)));\n } catch (e) {\n failTask(task.result, e, runner.config.diffOptions);\n }\n } else {\n for (const fn of hooks) {\n try {\n await fn(task.result);\n } catch (e) {\n failTask(task.result, e, runner.config.diffOptions);\n }\n }\n }\n}\nasync function callSuiteHook(suite, currentTask, name, runner, args) {\n const sequence = runner.config.sequence.hooks;\n const callbacks = [];\n const parentSuite = \"filepath\" in suite ? null : suite.suite || suite.file;\n if (name === \"beforeEach\" && parentSuite) {\n callbacks.push(\n ...await callSuiteHook(parentSuite, currentTask, name, runner, args)\n );\n }\n updateSuiteHookState(currentTask, name, \"run\", runner);\n const hooks = getSuiteHooks(suite, name, sequence);\n if (sequence === \"parallel\") {\n callbacks.push(\n ...await Promise.all(hooks.map((hook) => hook(...args)))\n );\n } else {\n for (const hook of hooks) {\n callbacks.push(await hook(...args));\n }\n }\n updateSuiteHookState(currentTask, name, \"pass\", runner);\n if (name === \"afterEach\" && parentSuite) {\n callbacks.push(\n ...await callSuiteHook(parentSuite, currentTask, name, runner, args)\n );\n }\n return callbacks;\n}\nconst packs = /* @__PURE__ */ new Map();\nlet updateTimer;\nlet previousUpdate;\nfunction updateTask(task, runner) {\n packs.set(task.id, [task.result, task.meta]);\n const { clearTimeout, setTimeout } = getSafeTimers();\n clearTimeout(updateTimer);\n updateTimer = setTimeout(() => {\n previousUpdate = sendTasksUpdate(runner);\n }, 10);\n}\nasync function sendTasksUpdate(runner) {\n var _a;\n const { clearTimeout } = getSafeTimers();\n clearTimeout(updateTimer);\n await previousUpdate;\n if (packs.size) {\n const taskPacks = Array.from(packs).map(([id, task]) => {\n return [id, task[0], task[1]];\n });\n const p = (_a = runner.onTaskUpdate) == null ? void 0 : _a.call(runner, taskPacks);\n packs.clear();\n return p;\n }\n}\nasync function callCleanupHooks(cleanups) {\n await Promise.all(\n cleanups.map(async (fn) => {\n if (typeof fn !== \"function\") {\n return;\n }\n await fn();\n })\n );\n}\nasync function runTest(test, runner) {\n var _a, _b, _c, _d, _e, _f, _g;\n await ((_a = runner.onBeforeRunTask) == null ? void 0 : _a.call(runner, test));\n if (test.mode !== \"run\") {\n return;\n }\n if (((_b = test.result) == null ? void 0 : _b.state) === \"fail\") {\n updateTask(test, runner);\n return;\n }\n const start = now();\n test.result = {\n state: \"run\",\n startTime: unixNow(),\n retryCount: 0\n };\n updateTask(test, runner);\n setCurrentTest(test);\n const suite = test.suite || test.file;\n const repeats = test.repeats ?? 0;\n for (let repeatCount = 0; repeatCount <= repeats; repeatCount++) {\n const retry = test.retry ?? 0;\n for (let retryCount = 0; retryCount <= retry; retryCount++) {\n let beforeEachCleanups = [];\n try {\n await ((_c = runner.onBeforeTryTask) == null ? void 0 : _c.call(runner, test, {\n retry: retryCount,\n repeats: repeatCount\n }));\n test.result.repeatCount = repeatCount;\n beforeEachCleanups = await callSuiteHook(\n suite,\n test,\n \"beforeEach\",\n runner,\n [test.context, suite]\n );\n if (runner.runTask) {\n await runner.runTask(test);\n } else {\n const fn = getFn(test);\n if (!fn) {\n throw new Error(\n \"Test function is not found. Did you add it using `setFn`?\"\n );\n }\n await fn();\n }\n await ((_d = runner.onAfterTryTask) == null ? void 0 : _d.call(runner, test, {\n retry: retryCount,\n repeats: repeatCount\n }));\n if (test.result.state !== \"fail\") {\n if (!test.repeats) {\n test.result.state = \"pass\";\n } else if (test.repeats && retry === retryCount) {\n test.result.state = \"pass\";\n }\n }\n } catch (e) {\n failTask(test.result, e, runner.config.diffOptions);\n }\n if (test.pending || ((_e = test.result) == null ? void 0 : _e.state) === \"skip\") {\n test.mode = \"skip\";\n test.result = { state: \"skip\" };\n updateTask(test, runner);\n setCurrentTest(void 0);\n return;\n }\n try {\n await ((_f = runner.onTaskFinished) == null ? void 0 : _f.call(runner, test));\n } catch (e) {\n failTask(test.result, e, runner.config.diffOptions);\n }\n try {\n await callSuiteHook(suite, test, \"afterEach\", runner, [\n test.context,\n suite\n ]);\n await callCleanupHooks(beforeEachCleanups);\n await callFixtureCleanup(test.context);\n } catch (e) {\n failTask(test.result, e, runner.config.diffOptions);\n }\n await callTestHooks(runner, test, test.onFinished || [], \"stack\");\n if (test.result.state === \"fail\") {\n await callTestHooks(\n runner,\n test,\n test.onFailed || [],\n runner.config.sequence.hooks\n );\n }\n delete test.onFailed;\n delete test.onFinished;\n if (test.result.state === \"pass\") {\n break;\n }\n if (retryCount < retry) {\n test.result.state = \"run\";\n test.result.retryCount = (test.result.retryCount ?? 0) + 1;\n }\n updateTask(test, runner);\n }\n }\n if (test.fails) {\n if (test.result.state === \"pass\") {\n const error = processError(new Error(\"Expect test to fail\"));\n test.result.state = \"fail\";\n test.result.errors = [error];\n } else {\n test.result.state = \"pass\";\n test.result.errors = void 0;\n }\n }\n setCurrentTest(void 0);\n test.result.duration = now() - start;\n await ((_g = runner.onAfterRunTask) == null ? void 0 : _g.call(runner, test));\n updateTask(test, runner);\n}\nfunction failTask(result, err, diffOptions) {\n if (err instanceof PendingError) {\n result.state = \"skip\";\n return;\n }\n result.state = \"fail\";\n const errors = Array.isArray(err) ? err : [err];\n for (const e of errors) {\n const error = processError(e, diffOptions);\n result.errors ?? (result.errors = []);\n result.errors.push(error);\n }\n}\nfunction markTasksAsSkipped(suite, runner) {\n suite.tasks.forEach((t) => {\n t.mode = \"skip\";\n t.result = { ...t.result, state: \"skip\" };\n updateTask(t, runner);\n if (t.type === \"suite\") {\n markTasksAsSkipped(t, runner);\n }\n });\n}\nasync function runSuite(suite, runner) {\n var _a, _b, _c, _d;\n await ((_a = runner.onBeforeRunSuite) == null ? void 0 : _a.call(runner, suite));\n if (((_b = suite.result) == null ? void 0 : _b.state) === \"fail\") {\n markTasksAsSkipped(suite, runner);\n updateTask(suite, runner);\n return;\n }\n const start = now();\n suite.result = {\n state: \"run\",\n startTime: unixNow()\n };\n updateTask(suite, runner);\n let beforeAllCleanups = [];\n if (suite.mode === \"skip\") {\n suite.result.state = \"skip\";\n } else if (suite.mode === \"todo\") {\n suite.result.state = \"todo\";\n } else {\n try {\n try {\n beforeAllCleanups = await callSuiteHook(\n suite,\n suite,\n \"beforeAll\",\n runner,\n [suite]\n );\n } catch (e) {\n markTasksAsSkipped(suite, runner);\n throw e;\n }\n if (runner.runSuite) {\n await runner.runSuite(suite);\n } else {\n for (let tasksGroup of partitionSuiteChildren(suite)) {\n if (tasksGroup[0].concurrent === true) {\n await Promise.all(tasksGroup.map((c) => runSuiteChild(c, runner)));\n } else {\n const { sequence } = runner.config;\n if (sequence.shuffle || suite.shuffle) {\n const suites = tasksGroup.filter(\n (group) => group.type === \"suite\"\n );\n const tests = tasksGroup.filter((group) => group.type === \"test\");\n const groups = shuffle([suites, tests], sequence.seed);\n tasksGroup = groups.flatMap(\n (group) => shuffle(group, sequence.seed)\n );\n }\n for (const c of tasksGroup) {\n await runSuiteChild(c, runner);\n }\n }\n }\n }\n } catch (e) {\n failTask(suite.result, e, runner.config.diffOptions);\n }\n try {\n await callSuiteHook(suite, suite, \"afterAll\", runner, [suite]);\n await callCleanupHooks(beforeAllCleanups);\n } catch (e) {\n failTask(suite.result, e, runner.config.diffOptions);\n }\n if (suite.mode === \"run\") {\n if (!runner.config.passWithNoTests && !hasTests(suite)) {\n suite.result.state = \"fail\";\n if (!((_c = suite.result.errors) == null ? void 0 : _c.length)) {\n const error = processError(\n new Error(`No test found in suite ${suite.name}`)\n );\n suite.result.errors = [error];\n }\n } else if (hasFailed(suite)) {\n suite.result.state = \"fail\";\n } else {\n suite.result.state = \"pass\";\n }\n }\n updateTask(suite, runner);\n suite.result.duration = now() - start;\n await ((_d = runner.onAfterRunSuite) == null ? void 0 : _d.call(runner, suite));\n }\n}\nlet limitMaxConcurrency;\nasync function runSuiteChild(c, runner) {\n if (c.type === \"test\" || c.type === \"custom\") {\n return limitMaxConcurrency(() => runTest(c, runner));\n } else if (c.type === \"suite\") {\n return runSuite(c, runner);\n }\n}\nasync function runFiles(files, runner) {\n var _a, _b;\n limitMaxConcurrency ?? (limitMaxConcurrency = limitConcurrency(runner.config.maxConcurrency));\n for (const file of files) {\n if (!file.tasks.length && !runner.config.passWithNoTests) {\n if (!((_b = (_a = file.result) == null ? void 0 : _a.errors) == null ? void 0 : _b.length)) {\n const error = processError(\n new Error(`No test suite found in file ${file.filepath}`)\n );\n file.result = {\n state: \"fail\",\n errors: [error]\n };\n }\n }\n await runSuite(file, runner);\n }\n}\nasync function startTests(paths, runner) {\n var _a, _b, _c, _d;\n await ((_a = runner.onBeforeCollect) == null ? void 0 : _a.call(runner, paths));\n const files = await collectTests(paths, runner);\n await ((_b = runner.onCollected) == null ? void 0 : _b.call(runner, files));\n await ((_c = runner.onBeforeRunFiles) == null ? void 0 : _c.call(runner, files));\n await runFiles(files, runner);\n await ((_d = runner.onAfterRunFiles) == null ? void 0 : _d.call(runner, files));\n await sendTasksUpdate(runner);\n return files;\n}\nasync function publicCollect(paths, runner) {\n var _a, _b;\n await ((_a = runner.onBeforeCollect) == null ? void 0 : _a.call(runner, paths));\n const files = await collectTests(paths, runner);\n await ((_b = runner.onCollected) == null ? void 0 : _b.call(runner, files));\n return files;\n}\n\nexport { afterAll, afterEach, beforeAll, beforeEach, publicCollect as collectTests, createTaskCollector, describe, getCurrentSuite, getCurrentTest, getFn, getHooks, it, onTestFailed, onTestFinished, setFn, setHooks, startTests, suite, test, updateTask };\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AAOA,IAAM,eAAN,cAA2B,MAAM;CAC/B,YAAY,SAAS,MAAM;AACzB,QAAM,QAAQ;AACd,OAAK,UAAU;AACf,OAAK,SAAS,KAAK;;CAErB,OAAO;CACP;;AAGF,MAAM,mBAAmB;CACvB,OAAO,EAAE;CACT,cAAc;CACf;AACD,SAAS,YAAY,MAAM;CACzB,IAAI;AACJ,EAAC,KAAK,iBAAiB,iBAAiB,QAAgB,GAAG,MAAM,KAAK,KAAK;;AAE7E,eAAe,aAAa,OAAO,IAAI;CACrC,MAAM,OAAO,iBAAiB;AAC9B,kBAAiB,eAAe;AAChC,OAAM,IAAI;AACV,kBAAiB,eAAe;;AAElC,SAAS,YAAY,IAAI,SAAS,SAAS,OAAO;AAChD,KAAI,WAAW,KAAK,YAAY,OAAO,kBACrC,QAAO;CAET,MAAM,EAAE,YAAY,iBAAiB,eAAe;AACpD,QAAO,SAAS,eAAe,GAAG,MAAM;AACtC,SAAO,QA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