aboutsummaryrefslogtreecommitdiffstats
path: root/vanilla/node_modules/@vitest/runner/dist/utils.d.ts
diff options
context:
space:
mode:
authorAdam Mathes <adam@adammathes.com>2026-02-13 21:34:48 -0800
committerAdam Mathes <adam@adammathes.com>2026-02-13 21:34:48 -0800
commit76cb9c2a39d477a64824a985ade40507e3bbade1 (patch)
tree41e997aa9c6f538d3a136af61dae9424db2005a9 /vanilla/node_modules/@vitest/runner/dist/utils.d.ts
parent819a39a21ac992b1393244a4c283bbb125208c69 (diff)
downloadneko-76cb9c2a39d477a64824a985ade40507e3bbade1.tar.gz
neko-76cb9c2a39d477a64824a985ade40507e3bbade1.tar.bz2
neko-76cb9c2a39d477a64824a985ade40507e3bbade1.zip
feat(vanilla): add testing infrastructure and tests (NK-wjnczv)
Diffstat (limited to 'vanilla/node_modules/@vitest/runner/dist/utils.d.ts')
-rw-r--r--vanilla/node_modules/@vitest/runner/dist/utils.d.ts45
1 files changed, 45 insertions, 0 deletions
diff --git a/vanilla/node_modules/@vitest/runner/dist/utils.d.ts b/vanilla/node_modules/@vitest/runner/dist/utils.d.ts
new file mode 100644
index 0000000..8d3757d
--- /dev/null
+++ b/vanilla/node_modules/@vitest/runner/dist/utils.d.ts
@@ -0,0 +1,45 @@
+import { S as Suite, F as File, T as Task, a as Test } from './tasks.d-C7UxawJ9.js';
+export { C as ChainableFunction, c as createChainable } from './tasks.d-C7UxawJ9.js';
+import { ParsedStack, Arrayable } from '@vitest/utils';
+
+/**
+* If any tasks been marked as `only`, mark all other tasks as `skip`.
+*/
+declare function interpretTaskModes(file: Suite, namePattern?: string | RegExp, testLocations?: number[] | undefined, onlyMode?: boolean, parentIsOnly?: boolean, allowOnly?: boolean): void;
+declare function someTasksAreOnly(suite: Suite): boolean;
+declare function generateHash(str: string): string;
+declare function calculateSuiteHash(parent: Suite): void;
+declare function createFileTask(filepath: string, root: string, projectName: string | undefined, pool?: string, viteEnvironment?: string): File;
+/**
+* Generate a unique ID for a file based on its path and project name
+* @param file File relative to the root of the project to keep ID the same between different machines
+* @param projectName The name of the test project
+*/
+declare function generateFileHash(file: string, projectName: string | undefined): string;
+declare function findTestFileStackTrace(testFilePath: string, error: string): ParsedStack | undefined;
+
+/**
+* Return a function for running multiple async operations with limited concurrency.
+*/
+declare function limitConcurrency(concurrency?: number): <
+ Args extends unknown[],
+ T
+>(func: (...args: Args) => PromiseLike<T> | T, ...args: Args) => Promise<T>;
+
+/**
+* Partition in tasks groups by consecutive concurrent
+*/
+declare function partitionSuiteChildren(suite: Suite): Task[][];
+
+declare function isTestCase(s: Task): s is Test;
+declare function getTests(suite: Arrayable<Task>): Test[];
+declare function getTasks(tasks?: Arrayable<Task>): Task[];
+declare function getSuites(suite: Arrayable<Task>): Suite[];
+declare function hasTests(suite: Arrayable<Suite>): boolean;
+declare function hasFailed(suite: Arrayable<Task>): boolean;
+declare function getNames(task: Task): string[];
+declare function getFullName(task: Task, separator?: string): string;
+declare function getTestName(task: Task, separator?: string): string;
+declare function createTaskName(names: readonly (string | undefined)[], separator?: string): string;
+
+export { calculateSuiteHash, createFileTask, createTaskName, findTestFileStackTrace, generateFileHash, generateHash, getFullName, getNames, getSuites, getTasks, getTestName, getTests, hasFailed, hasTests, interpretTaskModes, isTestCase, limitConcurrency, partitionSuiteChildren, someTasksAreOnly };