@depup/vitest__runner 4.1.0-depup.0

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.
@@ -0,0 +1,3 @@
1
+ export { A as AfterAllListener, i as AfterEachListener, j as AroundAllListener, k as AroundEachListener, B as BeforeAllListener, l as BeforeEachListener, C as CancelReason, m as FailureScreenshotArtifact, c as File, F as FileSpecification, n as Fixture, o as FixtureFn, p as FixtureOptions, q as Fixtures, I as ImportDuration, r as InferFixturesTypes, O as OnTestFailedHandler, s as OnTestFinishedHandler, R as Retry, t as RunMode, u as RuntimeContext, v as SequenceHooks, w as SequenceSetupFiles, x as SerializableRetry, S as Suite, g as SuiteAPI, h as SuiteCollector, y as SuiteFactory, b as SuiteHooks, z as SuiteOptions, e as Task, D as TaskBase, E as TaskCustomOptions, G as TaskEventPack, H as TaskHook, J as TaskMeta, K as TaskPopulated, L as TaskResult, M as TaskResultPack, N as TaskState, d as TaskUpdateEvent, a as Test, f as TestAPI, P as TestAnnotation, Q as TestAnnotationArtifact, U as TestAnnotationLocation, T as TestArtifact, W as TestArtifactBase, X as TestArtifactLocation, Y as TestArtifactRegistry, Z as TestAttachment, _ as TestContext, $ as TestFunction, a0 as TestOptions, a1 as TestTagDefinition, a2 as TestTags, a3 as Use, a4 as VisualRegressionArtifact, V as VitestRunner, a5 as VitestRunnerConfig, a6 as VitestRunnerConstructor, a7 as VitestRunnerImportSource } from './tasks.d-D2GKpdwQ.js';
2
+ import '@vitest/utils';
3
+ import '@vitest/utils/diff';
package/dist/types.js ADDED
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,53 @@
1
+ import { S as Suite, c as File, e as Task, a1 as TestTagDefinition, a5 as VitestRunnerConfig, a as Test } from './tasks.d-D2GKpdwQ.js';
2
+ export { ag as ChainableFunction, ah as createChainable } from './tasks.d-D2GKpdwQ.js';
3
+ import { ParsedStack, Arrayable } from '@vitest/utils';
4
+ import '@vitest/utils/diff';
5
+
6
+ /**
7
+ * If any tasks been marked as `only`, mark all other tasks as `skip`.
8
+ */
9
+ declare function interpretTaskModes(file: Suite, namePattern?: string | RegExp, testLocations?: number[] | undefined, testIds?: string[] | undefined, testTagsFilter?: ((testTags: string[]) => boolean) | undefined, onlyMode?: boolean, parentIsOnly?: boolean, allowOnly?: boolean): void;
10
+ declare function someTasksAreOnly(suite: Suite): boolean;
11
+ declare function generateHash(str: string): string;
12
+ declare function calculateSuiteHash(parent: Suite): void;
13
+ declare function createFileTask(filepath: string, root: string, projectName: string | undefined, pool?: string, viteEnvironment?: string): File;
14
+ /**
15
+ * Generate a unique ID for a file based on its path and project name
16
+ * @param file File relative to the root of the project to keep ID the same between different machines
17
+ * @param projectName The name of the test project
18
+ */
19
+ declare function generateFileHash(file: string, projectName: string | undefined): string;
20
+ declare function findTestFileStackTrace(testFilePath: string, error: string): ParsedStack | undefined;
21
+
22
+ interface ConcurrencyLimiter extends ConcurrencyLimiterFn {
23
+ acquire: () => (() => void) | Promise<() => void>;
24
+ }
25
+ type ConcurrencyLimiterFn = <
26
+ Args extends unknown[],
27
+ T
28
+ >(func: (...args: Args) => PromiseLike<T> | T, ...args: Args) => Promise<T>;
29
+ /**
30
+ * Return a function for running multiple async operations with limited concurrency.
31
+ */
32
+ declare function limitConcurrency(concurrency?: number): ConcurrencyLimiter;
33
+
34
+ /**
35
+ * Partition in tasks groups by consecutive concurrent
36
+ */
37
+ declare function partitionSuiteChildren(suite: Suite): Task[][];
38
+
39
+ declare function validateTags(config: VitestRunnerConfig, tags: string[]): void;
40
+ declare function createTagsFilter(tagsExpr: string[], availableTags: TestTagDefinition[]): (testTags: string[]) => boolean;
41
+
42
+ declare function isTestCase(s: Task): s is Test;
43
+ declare function getTests(suite: Arrayable<Task>): Test[];
44
+ declare function getTasks(tasks?: Arrayable<Task>): Task[];
45
+ declare function getSuites(suite: Arrayable<Task>): Suite[];
46
+ declare function hasTests(suite: Arrayable<Suite>): boolean;
47
+ declare function hasFailed(suite: Arrayable<Task>): boolean;
48
+ declare function getNames(task: Task): string[];
49
+ declare function getFullName(task: Task, separator?: string): string;
50
+ declare function getTestName(task: Task, separator?: string): string;
51
+ declare function createTaskName(names: readonly (string | undefined)[], separator?: string): string;
52
+
53
+ export { calculateSuiteHash, createFileTask, createTagsFilter, createTaskName, findTestFileStackTrace, generateFileHash, generateHash, getFullName, getNames, getSuites, getTasks, getTestName, getTests, hasFailed, hasTests, interpretTaskModes, isTestCase, limitConcurrency, partitionSuiteChildren, someTasksAreOnly, validateTags };
package/dist/utils.js ADDED
@@ -0,0 +1,5 @@
1
+ export { c as calculateSuiteHash, a as createChainable, b as createFileTask, d as createTagsFilter, e as createTaskName, f as findTestFileStackTrace, g as generateFileHash, h as generateHash, i as getFullName, j as getNames, k as getSuites, l as getTasks, m as getTestName, n as getTests, o as hasFailed, p as hasTests, q as interpretTaskModes, r as isTestCase, s as limitConcurrency, t as partitionSuiteChildren, u as someTasksAreOnly, v as validateTags } from './chunk-tasks.js';
2
+ import '@vitest/utils/error';
3
+ import '@vitest/utils/source-map';
4
+ import 'pathe';
5
+ import '@vitest/utils/helpers';
package/package.json ADDED
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "@depup/vitest__runner",
3
+ "type": "module",
4
+ "version": "4.1.0-depup.0",
5
+ "description": "[DepUp] Vitest test runner",
6
+ "license": "MIT",
7
+ "funding": "https://opencollective.com/vitest",
8
+ "homepage": "https://vitest.dev/api/advanced/runner",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/vitest-dev/vitest.git",
12
+ "directory": "packages/runner"
13
+ },
14
+ "bugs": {
15
+ "url": "https://github.com/vitest-dev/vitest/issues"
16
+ },
17
+ "keywords": [
18
+ "depup",
19
+ "dependency-bumped",
20
+ "updated-deps",
21
+ "@vitest/runner",
22
+ "vitest",
23
+ "test",
24
+ "test-runner"
25
+ ],
26
+ "sideEffects": true,
27
+ "exports": {
28
+ ".": {
29
+ "types": "./dist/index.d.ts",
30
+ "default": "./dist/index.js"
31
+ },
32
+ "./utils": {
33
+ "types": "./dist/utils.d.ts",
34
+ "default": "./dist/utils.js"
35
+ },
36
+ "./types": {
37
+ "types": "./dist/types.d.ts",
38
+ "default": "./dist/types.js"
39
+ },
40
+ "./*": "./*"
41
+ },
42
+ "main": "./dist/index.js",
43
+ "module": "./dist/index.js",
44
+ "types": "./dist/index.d.ts",
45
+ "files": [
46
+ "*.d.ts",
47
+ "dist",
48
+ "changes.json",
49
+ "README.md"
50
+ ],
51
+ "dependencies": {
52
+ "pathe": "^2.0.3",
53
+ "@vitest/utils": "4.1.0"
54
+ },
55
+ "scripts": {
56
+ "build": "premove dist && rollup -c",
57
+ "dev": "rollup -c --watch"
58
+ },
59
+ "depup": {
60
+ "changes": {},
61
+ "depsUpdated": 0,
62
+ "originalPackage": "@vitest/runner",
63
+ "originalVersion": "4.1.0",
64
+ "processedAt": "2026-03-17T16:33:41.461Z",
65
+ "smokeTest": "passed"
66
+ }
67
+ }
package/types.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './dist/types.js'
package/utils.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './dist/utils.js'