@vitest/runner 4.0.0-beta.8 → 4.0.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.
- package/dist/chunk-tasks.js +332 -0
- package/dist/{tasks.d-Bsp8b7Fx.d.ts → hooks.d-C0RE9A6t.d.ts} +128 -37
- package/dist/index.d.ts +3 -120
- package/dist/index.js +1988 -4
- package/dist/types.d.ts +10 -2
- package/dist/utils.d.ts +2 -2
- package/dist/utils.js +2 -3
- package/package.json +3 -4
- package/dist/chunk-hooks.js +0 -2253
package/dist/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DiffOptions } from '@vitest/utils/diff';
|
|
2
|
-
import { F as File,
|
|
3
|
-
export { A as AfterAllListener,
|
|
2
|
+
import { F as File, T as Test, S as Suite, J as TaskResultPack, C as TaskEventPack, L as TestAnnotation, P as TestContext, I as ImportDuration, v as SequenceHooks, w as SequenceSetupFiles } from './hooks.d-C0RE9A6t.js';
|
|
3
|
+
export { A as AfterAllListener, l as AfterEachListener, B as BeforeAllListener, m as BeforeEachListener, n as Fixture, p as FixtureFn, q as FixtureOptions, r as Fixtures, s as InferFixturesTypes, O as OnTestFailedHandler, t as OnTestFinishedHandler, R as RunMode, u as RuntimeContext, e as SuiteAPI, f as SuiteCollector, x as SuiteFactory, a as SuiteHooks, c as Task, y as TaskBase, z as TaskCustomOptions, D as TaskHook, E as TaskMeta, G as TaskPopulated, H as TaskResult, K as TaskState, b as TaskUpdateEvent, d as TestAPI, M as TestAnnotationLocation, N as TestAttachment, Q as TestFunction, U as TestOptions, V as Use } from './hooks.d-C0RE9A6t.js';
|
|
4
4
|
import '@vitest/utils';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -88,6 +88,14 @@ interface VitestRunner {
|
|
|
88
88
|
repeats: number;
|
|
89
89
|
}) => unknown;
|
|
90
90
|
/**
|
|
91
|
+
* Called after the retry resolution happend. Unlike `onAfterTryTask`, the test now has a new state.
|
|
92
|
+
* All `after` hooks were also called by this point.
|
|
93
|
+
*/
|
|
94
|
+
onAfterRetryTask?: (test: Test, options: {
|
|
95
|
+
retry: number;
|
|
96
|
+
repeats: number;
|
|
97
|
+
}) => unknown;
|
|
98
|
+
/**
|
|
91
99
|
* Called before running a single suite. Doesn't have "result" yet.
|
|
92
100
|
*/
|
|
93
101
|
onBeforeRunSuite?: (suite: Suite) => unknown;
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as Suite, F as File,
|
|
2
|
-
export {
|
|
1
|
+
import { S as Suite, F as File, c as Task, T as Test } from './hooks.d-C0RE9A6t.js';
|
|
2
|
+
export { W as ChainableFunction, X as createChainable } from './hooks.d-C0RE9A6t.js';
|
|
3
3
|
import { ParsedStack, Arrayable } from '@vitest/utils';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/utils.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import '@vitest/utils';
|
|
1
|
+
export { a as calculateSuiteHash, c as createChainable, b as createFileTask, f as findTestFileStackTrace, g as generateFileHash, d as generateHash, e as getFullName, h as getNames, j as getSuites, k as getTasks, m as getTestName, n as getTests, o as hasFailed, q as hasTests, i as interpretTaskModes, r as isTestCase, l as limitConcurrency, p as partitionSuiteChildren, s as someTasksAreOnly } from './chunk-tasks.js';
|
|
3
2
|
import '@vitest/utils/error';
|
|
4
|
-
import 'strip-literal';
|
|
5
3
|
import '@vitest/utils/source-map';
|
|
6
4
|
import 'pathe';
|
|
5
|
+
import '@vitest/utils/helpers';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitest/runner",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.0
|
|
4
|
+
"version": "4.0.0",
|
|
5
5
|
"description": "Vitest test runner",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://opencollective.com/vitest",
|
|
@@ -39,11 +39,10 @@
|
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"pathe": "^2.0.3",
|
|
42
|
-
"
|
|
43
|
-
"@vitest/utils": "4.0.0-beta.8"
|
|
42
|
+
"@vitest/utils": "4.0.0"
|
|
44
43
|
},
|
|
45
44
|
"scripts": {
|
|
46
|
-
"build": "
|
|
45
|
+
"build": "premove dist && rollup -c",
|
|
47
46
|
"dev": "rollup -c --watch"
|
|
48
47
|
}
|
|
49
48
|
}
|