afterEach is called twice before an async test is run #48

Closed
jamesarosen opened this Issue Jan 30, 2011 · 3 comments

Comments

Projects
None yet
2 participants

An example can be found in the JustKidding project. I will try to reduce the issue to a smaller test case, but for now,

  1. clone git://github.com/jamesarosen/JustKidding.git
  2. check out e5f894168eed8c010ddf286d5d712123a1c6f6d9
  3. run just the group "when there are more elements..."

Console output has to "afterEach" statements first, then a "beforeEach" statement, then an "it" statement.

Contributor

infews commented Jan 30, 2011

Great idea, but the only difference I see in output is that the "it" console log statement is never reached. There are still two "afterEach" statements and they're both before the "beforeEach."

I have fixed my tests now, so this isn't such a pressing issue for me. Still, the runner-wide afterEach blocks seem to be firing during setup, which is odd. Not problematic any longer, just odd.

infews closed this Jun 19, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment