Consider upgrading to Jasmine 2
Async support in Jasmine 1.3 is pretty poor, this has been fixed in version 2 of the framework. Maybe we should consider upgrading to that version.
:+1:
This would be great - being able to use done() for async testing would really be welcome!
Any news on that? Ironically, I've found that exactly the tests I moved from plain Jasmine to Jest for in order to simplify my tooling - CSP code that requires ES6 generators - don't work any longer.
:+1:
I agree! :+1: done() makes async tests so much nicer.
:+1: I actively use CSP (via js-csp), so it would be pretty nice if I could do something like this:
go(function *() {
var value;
value = yield take(makeAsyncThing());
expect(value).toEqual('whatever');
done();
});
:+1: +1
:+1: @jeffmo How do you think
:+1:
:+1:
:+1:
Yeah, we need it! :+1:
:+1:
:+1:
:+1:
:+1:
Upgrading to Jasmine 2 would also fix equality issues like the one demonstrated here: https://gist.github.com/randymorris/439a85bccc856ca4e8c1.
(thumbsup) (plusone) etc...
related question: Has anyone dropped in 2.x to see what happens? may not be too bad to fix. OSS and all... (puts on todo list)
:+1: