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
With a little modified version of the pollUntil function multiple async conditions using normal expectations could be supported. Since those expect() call always throw an informative assertion-error, it could be used also as more helpful test-error message.
var i = 0;
Meteor.setInterval(function () {
i++;
}, 100);
until(
waitFor,
function () {
expect(i).to.equal(10);
});
until(
waitFor,
function () {
expect(i).to.equal('A');
});
This example has two conditions, where the last one will never be true and result in a timeout with
timeout after 4800ms waiting for: expected 48 to equal 'A'
One problem is still the "global-test-timeout", which after 5s terminates the test with Async batch timed out. The detailed error messages are only visible when they timeout little earlier.
Munit was at the time something built on top of meteor's tinytest and due to tinytest's immaturity, compared to mocha and jasmine, is missing a lot of features. We are actually working on a mocha for packages solution, so we don't invest anymore time on trying and improve munit.
@rbabayoff I just browsed your repos, but the meteor-mocha had the last change half year ago. Saw that you forked mocha repo directly. Its currently possible to use it for package tests?
With a little modified version of the pollUntil function multiple async conditions using normal expectations could be supported. Since those expect() call always throw an informative assertion-error, it could be used also as more helpful test-error message.
This example has two conditions, where the last one will never be true and result in a timeout with
One problem is still the "global-test-timeout", which after 5s terminates the test with
Async batch timed out
. The detailed error messages are only visible when they timeout little earlier.Even more better to read could be
This would need some changes in the ExpectationManager.
Here is the
until
function.The text was updated successfully, but these errors were encountered: