版博士V2.0程序
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

26 строки
1.4 KiB

  1. import { e as Suite, T as Task, g as Test, j as TaskCustom } from './tasks-3fbb29e4.js';
  2. export { C as ChainableFunction, E as ErrorWithDiff, P as ParsedStack, s as createChainable, u as processError, v as replaceAsymmetricMatcher, t as serializeError } from './tasks-3fbb29e4.js';
  3. import { Arrayable } from '@vitest/utils';
  4. /**
  5. * If any tasks been marked as `only`, mark all other tasks as `skip`.
  6. */
  7. declare function interpretTaskModes(suite: Suite, namePattern?: string | RegExp, onlyMode?: boolean, parentIsOnly?: boolean, allowOnly?: boolean): void;
  8. declare function someTasksAreOnly(suite: Suite): boolean;
  9. declare function generateHash(str: string): string;
  10. declare function calculateSuiteHash(parent: Suite): void;
  11. /**
  12. * Partition in tasks groups by consecutive concurrent
  13. */
  14. declare function partitionSuiteChildren(suite: Suite): Task[][];
  15. declare function getTests(suite: Arrayable<Task>): (Test | TaskCustom)[];
  16. declare function getTasks(tasks?: Arrayable<Task>): Task[];
  17. declare function getSuites(suite: Arrayable<Task>): Suite[];
  18. declare function hasTests(suite: Arrayable<Suite>): boolean;
  19. declare function hasFailed(suite: Arrayable<Task>): boolean;
  20. declare function getNames(task: Task): string[];
  21. export { calculateSuiteHash, generateHash, getNames, getSuites, getTasks, getTests, hasFailed, hasTests, interpretTaskModes, partitionSuiteChildren, someTasksAreOnly };