Skip to content

Do child beforeEach() override parent beforeEach() or are they all executed in order? #134

Description

@LeaVerou

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions