Skip to content

experimental_parseSpecifications deprecation warning printed on every collection with Vitest 5 #834

Description

@Terrence721

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.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions