Allow @TestState properties be declared inside describe and context #5803
Labels
enhancement
Ideas for improvements of existing features and rules.
good first issue
Issue to be taken up by new contributors yet unfamiliar with the project.
New Issue Checklist
Feature or Enhancement Proposal
Quick has a property wrapper called TestState which warrants there's no shared state between multiple tests by assigning the wrapped value to nil before each run.
However, the following example would trigger a quick_discouraged_call warning.
That's because the property is getting assigning by calling a function inside a describe/context.
I was wondering if it makes sense to not trigger when a using
@TestState
property. I can even look into putting up a PR (and appreciate any suggestion that can help me).The text was updated successfully, but these errors were encountered: