Test cases start executing before the completion of hooks calls [before, beforeEach] #109
vinayak-kaladhar
started this conversation in
General
Replies: 1 comment
-
@vinayak-kaladhar I think this issue is more into synchronous and asynchronous function, where pactum has no part to play. |
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
-
Scenario:
I have a file named hooks.js with before/beforeAll() used to setup pre-requisite.
Contents of hooks.js :
I have my test-scripts files also.
I trigger tests as mocha --require test/hooks.js test/{test_file.js}
But before the completion of methods in hooks.js under before annotation, test scripts start executing, resulting failure.
Beta Was this translation helpful? Give feedback.
All reactions