Skip to content

Vitest 4.1.5 merged report transform=0ms #10570

Closed

Description

@n0th1ng-else

Describe the bug

Hey team. was not able to find this in the docs or on GitHub quickly. I am wondering why everything seems to be correct, but transform 0ms?

I tested running 2 shards and then merging the blobs.
Here are the stats:

### Shard 1
 Test Files  20 passed (20)
      Tests  204 passed (204)
   Start at  01:18:07
   Duration  1.01s (transform 1.52s, setup 2.07s, import 3.88s, tests 890ms, environment 1ms)

### Shard 2
 Test Files  20 passed (20)
      Tests  233 passed (233)
   Start at  01:18:08
   Duration  1.27s (transform 1.89s, setup 2.10s, import 3.82s, tests 2.49s, environment 1ms)

### Merged report
 Test Files  40 passed (40)
      Tests  437 passed (437)
   Start at  01:18:09
   Duration  2.28s (transform 0ms, setup 4.17s, import 7.70s, tests 3.38s, environment 2ms)
   Per blob  1.01s 1.27s

is this intended? I would assume if we can calculate import then transform is also there.

Thank you.

Reproduction

https://github.com/n0th1ng-else/voice-to-text-bot/tree/vitest-merge-report-stats

  1. pnpm install
  2. pnpm test - give sequential stats (if needed)
  3. pnpm test:merge - runs 2 shards + merges the report

System Info

System:
    OS: macOS 26.3
    CPU: (10) arm64 Apple M5
    Memory: 112.31 MB / 24.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 24.11.1 - /Users/sen/.nvm/versions/node/v24.11.1/bin/node
    npm: 11.6.2 - /Users/sen/.nvm/versions/node/v24.11.1/bin/npm
    pnpm: 10.33.0 - /Users/sen/Library/pnpm/pnpm
  Browsers:
    Chrome: 149.0.7827.54
    Safari: 26.3
  npmPackages:
    @vitest/coverage-v8: 4.1.5 => 4.1.5
    @vitest/ui: 4.1.5 => 4.1.5
    vitest: 4.1.5 => 4.1.5
    vitest-sonar-reporter: 3.0.0 => 3.0.0

Used Package Manager

pnpm

Validations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    p3-minor-bugAn edge case that only affects very specific usage (priority)

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions