@flakiness/vitest 1.9.1 → 1.10.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/lib/reporter.js CHANGED
@@ -16921,7 +16921,7 @@ import * as nodeUtil from "node:util";
16921
16921
  // package.json
16922
16922
  var package_default = {
16923
16923
  name: "@flakiness/vitest",
16924
- version: "1.9.1",
16924
+ version: "1.10.0",
16925
16925
  packageManager: "pnpm@11.5.0",
16926
16926
  description: "",
16927
16927
  main: "lib/reporter.js",
@@ -17140,7 +17140,7 @@ var ReporterImpl = class _ReporterImpl {
17140
17140
  }
17141
17141
  const startTime = testCase.diagnostic()?.startTime ?? this._startTimestamp;
17142
17142
  const duration3 = testCase.diagnostic()?.duration ?? testCase.module.diagnostic()?.duration ?? 0;
17143
- const retryCount = testCase.diagnostic()?.retryCount ?? 0;
17143
+ const retryCount = testCase.options.fails ? 0 : testCase.diagnostic()?.retryCount ?? 0;
17144
17144
  const stdio = [];
17145
17145
  let ts = startTime;
17146
17146
  for (const entry of this._stdio.get(testCase.id) ?? []) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flakiness/vitest",
3
- "version": "1.9.1",
3
+ "version": "1.10.0",
4
4
  "description": "",
5
5
  "main": "lib/reporter.js",
6
6
  "keywords": [],
@@ -1,6 +1,5 @@
1
1
  import type { UserConsoleLog } from 'vitest';
2
- import type { SerializedError, TestModule, TestRunEndReason, Vitest } from 'vitest/node';
3
- import type { Reporter } from 'vitest/reporters';
2
+ import type { Reporter, SerializedError, TestModule, TestRunEndReason, Vitest } from 'vitest/node';
4
3
  export type FKVitestReporterOptions = {
5
4
  disableUpload?: boolean;
6
5
  flakinessProject?: string;