You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But if the discovered type is a string then it may still get reported on.
import{describe,test,expect}from"vitest";declareconstouterName: string;describe(outerName,()=>{// ~~~~~~~~~// Test title must be a string, a function or class nametest("item",()=>{expect(0).toBe(0);});});
The text was updated successfully, but these errors were encountered:
JoshuaKGoldberg
changed the title
Bug: valid-title can't eliminate string types with settings.typcheck
Bug: valid-title can't eliminate string types with settings.typecheck
Mar 17, 2025
settings.typecheck
allowsvitest/valid-title
to skip reporting on class and function types, as determined byservices.getTypeAtLocation
:eslint-plugin-vitest/src/rules/valid-title.ts
Lines 211 to 217 in c808a21
But if the discovered type is a string then it may still get reported on.
The text was updated successfully, but these errors were encountered: