Skip to content

Regression: new false positive in no-done-callback #802

@wjhsf

Description

@wjhsf

PR #800 (released in v1.3.24) fixed a false positive in no-standalone-expect, but it introduced a new one in no-done-callback.

import { test, expect } from 'vitest';
test.for([1, 2, 3])('%s is a number', (n) => {
    expect(n).toBeTypeOf('number');
});

The above code passes validation with v1.3.23, but fails with v1.3.24.

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