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
Would there be interest in a rule that enforces that test function bodies always be blocks?
// BAD: Test function bodies should always be blocks (at 1:38)it('should always use blocks',()=>testSubject().then(// ----------------------------------^result=>expect(result).toBe(42)));// OKit('should always use blocks',()=>{returntestSubject().then(result=>expect(result).toBe(42));});
I wouldn't include this one as an error for default configuration, but definitely would be a good contribution so people can decide if they want this as a convention for their projects.
Would there be interest in a rule that enforces that test function bodies always be blocks?
Implementation prototype with samples
The text was updated successfully, but these errors were encountered: