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
This code currently violates no-conditional-in-test
describe("suite",()=>{it("clicking button does something",()=>{constbutton: Button|null=findButton();if(button){button.click();}expect(someCallback).toHaveBeenCalled();});});
Whereas this code does not:
describe("suite",()=>{it("clicking button does something",()=>{constbutton: Button|null=findButton();button?.click();expect(someCallback).toHaveBeenCalled();});});
Happy to help on a PR if there is consensus.
The text was updated successfully, but these errors were encountered:
This code currently violates
no-conditional-in-test
Whereas this code does not:
Happy to help on a PR if there is consensus.
The text was updated successfully, but these errors were encountered: