You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am fully aware of the asynchronous helpers built in QUnit and I use them whenever the test is asynchronous. However, the problem I am dealing with is the code itself that is asynchronous.
In that example, code-to-test.js is actually loading asynchronous dependencies and I would like QUnit to wait before running the corresponding unit tests.
Checking node-qunit code, I would like child.js's _require function to be asynchronous.
Thinking about the way we could tell the function that it has to wait, I was thinking that if the loaded module exports a promise, we could wait for it to be resolved before continuing the load.
Any thoughts?
Arnaud
The text was updated successfully, but these errors were encountered:
Guys,
I am fully aware of the asynchronous helpers built in QUnit and I use them whenever the test is asynchronous. However, the problem I am dealing with is the code itself that is asynchronous.
For instance:
In that example,
code-to-test.js
is actually loading asynchronous dependencies and I would like QUnit to wait before running the corresponding unit tests.Checking node-qunit code, I would like
child.js
's_require
function to be asynchronous.Thinking about the way we could tell the function that it has to wait, I was thinking that if the loaded module exports a promise, we could wait for it to be resolved before continuing the load.
Any thoughts?
The text was updated successfully, but these errors were encountered: