How about using describes and beforeEach's? That would probably be a more idiomatic approach to accomplish the same things. If you find the need to rerender stuff too often, you're probably combining what should be multiple tests.
Not that I don't enjoy the type gymnastics that are going on in the article (I'm a really big fan of TS's structural typing, and I spend way more time than I should doing similar things in my side projects). I just think this could probably be simpler by better leveraging your testing library.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
How about using describes and beforeEach's? That would probably be a more idiomatic approach to accomplish the same things. If you find the need to rerender stuff too often, you're probably combining what should be multiple tests.
I'd +1 this.
Not that I don't enjoy the type gymnastics that are going on in the article (I'm a really big fan of TS's structural typing, and I spend way more time than I should doing similar things in my side projects). I just think this could probably be simpler by better leveraging your testing library.