@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/types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { DiffOptions } from '@vitest/utils/diff';
2
- import { F as File, a as Test, S as Suite, E as TaskResultPack, x as TaskEventPack, J as TestAnnotation, M as TestContext, I as ImportDuration, s as SequenceHooks, t as SequenceSetupFiles } from './tasks.d-Bsp8b7Fx.js';
3
- export { A as AfterAllListener, b as AfterEachListener, B as BeforeAllListener, d as BeforeEachListener, l as Fixture, m as FixtureFn, n as FixtureOptions, o as Fixtures, H as HookCleanupCallback, p as HookListener, q as InferFixturesTypes, O as OnTestFailedHandler, f as OnTestFinishedHandler, R as RunMode, r as RuntimeContext, j as SuiteAPI, k as SuiteCollector, u as SuiteFactory, g as SuiteHooks, T as Task, v as TaskBase, w as TaskCustomOptions, e as TaskHook, y as TaskMeta, z as TaskPopulated, D as TaskResult, G as TaskState, h as TaskUpdateEvent, i as TestAPI, K as TestAnnotationLocation, L as TestAttachment, N as TestFunction, P as TestOptions, U as Use } from './tasks.d-Bsp8b7Fx.js';
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, T as Task, a as Test } from './tasks.d-Bsp8b7Fx.js';
2
- export { C as ChainableFunction, c as createChainable } from './tasks.d-Bsp8b7Fx.js';
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 { v as calculateSuiteHash, r as createChainable, w as createFileTask, x as findTestFileStackTrace, y as generateFileHash, z as generateHash, E as getFullName, F as getNames, G as getSuites, H as getTasks, I as getTestName, J as getTests, K as hasFailed, L as hasTests, A as interpretTaskModes, M as isTestCase, C as limitConcurrency, D as partitionSuiteChildren, B as someTasksAreOnly } from './chunk-hooks.js';
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-beta.8",
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
- "strip-literal": "^3.0.0",
43
- "@vitest/utils": "4.0.0-beta.8"
42
+ "@vitest/utils": "4.0.0"
44
43
  },
45
44
  "scripts": {
46
- "build": "rimraf dist && rollup -c",
45
+ "build": "premove dist && rollup -c",
47
46
  "dev": "rollup -c --watch"
48
47
  }
49
48
  }