| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
This commit updates the test runner afterEach hook so that the current test's afterEach hooks run before any ancestor afterEach hooks. Fixes: nodejs#51671
|
Review requested:
|
Sorry, something went wrong.
Sorry, something went wrong.
| ArrayPrototypeSplice(this.hooks[name], this.hooks.ownAfterEachCount, 0, hook); | ||
| this.hooks.ownAfterEachCount++; |
There was a problem hiding this comment.
| ArrayPrototypeSplice(this.hooks[name], this.hooks.ownAfterEachCount, 0, hook); | |
| this.hooks.ownAfterEachCount++; | |
| ArrayPrototypeSplice(this.hooks[name], this.hooks.ownAfterEachCount++, 0, hook); |
Sorry, something went wrong.
There was a problem hiding this comment.
I personally find that a little less readable, only because the splice line is already a bit busy.
Sorry, something went wrong.
There was a problem hiding this comment.
OK, works for me 🙂
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This commit updates the test runner afterEach hook so that the current test's afterEach hooks run before any ancestor afterEach hooks.
Fixes: #51671