-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
False positives when mocha allowes async execution between "before" and test #1468
Comments
@boneskull When you say unconfirmed, do you mean that you haven't had any time to test it or that you tried and could not recreate it? |
why you have not used done in before / beforeEach if you want them to sync ? |
@maboiteaspam Not sure about your question... |
You seem to misunderstand how |
@jbnicolai No, there is no misunderstanding of
|
Below are 3 examples of tests that all pass but as far as I can see, they should not. The tests all go through a
before
orbeforeEach
function that performs changes necessary for the tests to pass, but they all do it on the next tick and without telling mocha to wait.It appears that mocha allows at least one tick between the
before
functions and the tests. Is this correct? I would have expected it to run synchronously.The text was updated successfully, but these errors were encountered: