Skip to content

Hanging when running test.each individually #598

@TrueWill

Description

@TrueWill

Describe the bug

When using test.each, running that group of tests with Run Test hangs.

Reproduction

        it.each([{ url: 'not a URL', expected: 'Value must be a URL: url' }])(
          'URL $url should fail validation',
          async ({ url, expected }) => {
            // Replacing actual test with example code - also only including a single case
            expect(url).toEqual(expected);
          }
        );

Right-clicking on the 🟢 and selecting Run Test (or doing that on the describe block) just shows the loading indicator in the result window indefinitely.

This same test runs fine with vitest on the command line.

Output

(none)

Extension Version

1.16.0

Vitest Version

3.0.7

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions