Dealing with lint/suspicious/noMisplacedAssertion in helper functions
#5483
Unanswered
ChristianIvicevic
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
I think I might suggest configuring an override and disabling this rule in your |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Pretty simple case, I have a helper function in my
describeblock and Biome naturally reports this. I feel like this rule only makes sense if you truly force all your assertions inside theitblocks but repeating the same set of assertions in most tests I really had to extract a reusable helper function.Are there plans to make this rule more configurable? Maybe using an allowed prefix?
Example snippet:
Beta Was this translation helpful? Give feedback.
All reactions