Not sure which behavior is best, but whatever hTest implements it should be documented!
On one hand, executing both is probably what most use cases want. On the other hand, then there is no way around it when it's not what you want.
Edit: They override and require this.parent.parent.beforeEach() to invoke the parent with this.parent.beforeEach() causing a stack overflow. Yikes. this.parent should just work. I'm gonna change this to Bug.
Edit 2: Even more mysterious that for beforeAll this.parent works just fine!!
Edit 3: And it apparently requires .call(this) because data doesn't seem to inherit properly?
Not sure which behavior is best, but whatever hTest implements it should be documented!
On one hand, executing both is probably what most use cases want. On the other hand, then there is no way around it when it's not what you want.
Edit: They override and require
this.parent.parent.beforeEach()to invoke the parent withthis.parent.beforeEach()causing a stack overflow. Yikes.this.parentshould just work. I'm gonna change this to Bug.Edit 2: Even more mysterious that for
beforeAllthis.parentworks just fine!!Edit 3: And it apparently requires
.call(this)because data doesn't seem to inherit properly?