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
What environment are you running QUnit in? (e.g., browser, Node): node v10.12.0
How are you running QUnit? (e.g., script, testem, Grunt): using the qunit script (eg. ./node_modules/qunit/bin/qunit)
What are you trying to do?
Code that reproduces the problem:
"use strict";QUnit.testStart(()=>{console.log("waiting");returnnewPromise((resolve,reject)=>setTimeout(resolve,5000)).then(()=>console.log("proceeding"));});QUnit.testDone(()=>console.log("done"));QUnit.test("test",(assert)=>{console.log("inside the test");assert.equal(2+2,4);});
Command line:
./node_modules/qunit/bin/qunit test.js
What did you expect to happen?
According to the documentation, QUnit should wait for the promise before proceeding, so I expected to see the traces:
waiting
proceeding
inside the test
done
in that order with a 5s delay between waiting and proceeding.
What actually happened?
The test proceeded immediately without waiting for the promise. I got the traces:
waiting
inside the test
done
proceeding
with the expected 5s delay before the proceeding trace, but by that time the test has already run.
The text was updated successfully, but these errors were encountered:
Tell us about your runtime:
./node_modules/qunit/bin/qunit
)What are you trying to do?
Code that reproduces the problem:
Command line:
What did you expect to happen?
According to the documentation, QUnit should wait for the promise before proceeding, so I expected to see the traces:
in that order with a 5s delay between
waiting
andproceeding
.What actually happened?
The test proceeded immediately without waiting for the promise. I got the traces:
with the expected 5s delay before the
proceeding
trace, but by that time the test has already run.The text was updated successfully, but these errors were encountered: