How the sequence.hooks = stack works? #6246
Unanswered
brunolopesr-dft
asked this question in
Q&A
Replies: 1 comment
-
Before hooks are running one after another. After hooks are running in a reverse order |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Upgraded to Vitest 2.0 today and "something" changed in the order the beforeEach hooks are working and some tests that previously were not failing in 1.6.0, started to fail.
Changed the
sequence.hooks
toparallel
and everything started to work correctly again.So my question is, what is the order for the "before" hooks in the
stack
?The parent hooks run after the test suite before hooks? Is it a last in, first out or I'm missing something?
Beta Was this translation helpful? Give feedback.
All reactions