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
As of vitest-dev/vitest#3493 -> vitest-dev/vitest#3497, Vitest describes & similar can take in function names. I think the valid-title rule should by default no longer complain if a function name is provided.
Before:
import{describe}from"vitest"functionisBodyWithReplies(){/* ... */}describe(isBodyWithReplies,()=>{// ~~~~~~~~~~~~~~~~~~ Test title must be a string// ...})
After:
import{describe}from"vitest"functionisBodyWithReplies(){/* ... */}describe(isBodyWithReplies,()=>{// OK// ...});describe(1234567890,()=>{// ~~~~~~~~~~ Test title must be a function or string// ...});
I'd be happy to send a PR for this! ❤️
The text was updated successfully, but these errors were encountered:
As of vitest-dev/vitest#3493 -> vitest-dev/vitest#3497, Vitest
describe
s & similar can take in function names. I think thevalid-title
rule should by default no longer complain if a function name is provided.Before:
After:
I'd be happy to send a PR for this! ❤️
The text was updated successfully, but these errors were encountered: