版博士V2.0程序
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516171819202122232425
  1. import { V as VitestRunner } from './runner-b9659804.js';
  2. export { V as VitestRunner, a as VitestRunnerConfig, c as VitestRunnerConstructor, b as VitestRunnerImportSource } from './runner-b9659804.js';
  3. import { T as Task, F as File, S as SuiteAPI, a as TestAPI, b as SuiteCollector, c as SuiteHooks, H as HookListener, d as TestContext, e as Suite, f as HookCleanupCallback, O as OnTestFailedHandler, g as Test } from './tasks-3fbb29e4.js';
  4. export { D as DoneCallback, F as File, f as HookCleanupCallback, H as HookListener, O as OnTestFailedHandler, R as RunMode, p as RuntimeContext, q as SequenceHooks, r as SequenceSetupFiles, e as Suite, S as SuiteAPI, b as SuiteCollector, o as SuiteFactory, c as SuiteHooks, T as Task, i as TaskBase, j as TaskCustom, k as TaskResult, l as TaskResultPack, h as TaskState, g as Test, a as TestAPI, d as TestContext, m as TestFunction, n as TestOptions } from './tasks-3fbb29e4.js';
  5. import { Awaitable } from '@vitest/utils';
  6. declare function updateTask(task: Task, runner: VitestRunner): void;
  7. declare function startTests(paths: string[], runner: VitestRunner): Promise<File[]>;
  8. declare const suite: SuiteAPI<{}>;
  9. declare const test: TestAPI<{}>;
  10. declare const describe: SuiteAPI<{}>;
  11. declare const it: TestAPI<{}>;
  12. declare function getCurrentSuite<ExtraContext = {}>(): SuiteCollector<ExtraContext>;
  13. declare const beforeAll: (fn: SuiteHooks['beforeAll'][0], timeout?: number) => void;
  14. declare const afterAll: (fn: SuiteHooks['afterAll'][0], timeout?: number) => void;
  15. declare const beforeEach: <ExtraContext = {}>(fn: HookListener<[TestContext & ExtraContext, Suite], HookCleanupCallback>, timeout?: number) => void;
  16. declare const afterEach: <ExtraContext = {}>(fn: HookListener<[TestContext & ExtraContext, Suite], void>, timeout?: number) => void;
  17. declare const onTestFailed: (fn: OnTestFailedHandler) => void;
  18. declare function setFn(key: Test, fn: (() => Awaitable<void>)): void;
  19. declare function getFn<Task = Test>(key: Task): (() => Awaitable<void>);
  20. export { afterAll, afterEach, beforeAll, beforeEach, describe, getCurrentSuite, getFn, it, onTestFailed, setFn, startTests, suite, test, updateTask };