With Vitest 5, the extension's worker calls vitest.experimental_parseSpecifications(...) when collecting tests. Vitest 5 deprecates that method, so each collection prints this to the Vitest output:
DEPRECATED The "experimental_parseSpecifications" method is deprecated. Use "parseSpecifications" instead.
Collection still works, because the deprecated method forwards to parseSpecifications, but the warning repeats on every run.
Versions: extension 1.52.1 (latest), Vitest 5.0.2, VS Code on Windows 11.
Where: collectSpecifications in packages/worker/src/runner.ts calls this.vitest.experimental_parseSpecifications(specifications).
Suggested fix: call parseSpecifications when it exists, and fall back to experimental_parseSpecifications for older Vitest versions.
With Vitest 5, the extension's worker calls
vitest.experimental_parseSpecifications(...)when collecting tests. Vitest 5 deprecates that method, so each collection prints this to the Vitest output:Collection still works, because the deprecated method forwards to
parseSpecifications, but the warning repeats on every run.Versions: extension 1.52.1 (latest), Vitest 5.0.2, VS Code on Windows 11.
Where:
collectSpecificationsinpackages/worker/src/runner.tscallsthis.vitest.experimental_parseSpecifications(specifications).Suggested fix: call
parseSpecificationswhen it exists, and fall back toexperimental_parseSpecificationsfor older Vitest versions.