We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Note that we don't call await on each tween:
tweenz/src/index.js
Lines 59 to 62 in 7a733f2
This is deliberate - so that code can execute "after" a request (the whole point of tweenz). Putting await here would create an infinite promise loop.
This behaviour is mostly ok, except when you want to run tests on tweenz. Code can run after the test completes :)
This can be worked around by using something like https://www.npmjs.com/package/flush-promises a bunch of times before writing any assertions.
The 'proper' fix may be some global function that can be used in tests to properly await the results of tweens
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Note that we don't call await on each tween:
tweenz/src/index.js
Lines 59 to 62 in 7a733f2
This is deliberate - so that code can execute "after" a request (the whole point of tweenz). Putting await here would create an infinite promise loop.
This behaviour is mostly ok, except when you want to run tests on tweenz. Code can run after the test completes :)
This can be worked around by using something like https://www.npmjs.com/package/flush-promises a bunch of times before writing any assertions.
The 'proper' fix may be some global function that can be used in tests to properly await the results of tweens
The text was updated successfully, but these errors were encountered: