jest icon indicating copy to clipboard operation
jest copied to clipboard

Consider upgrading to Jasmine 2

Open n1k0 opened this issue 12 years ago • 42 comments

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.

n1k0 avatar Jun 15 '14 11:06 n1k0

:+1:

chenglou avatar Jul 10 '14 00:07 chenglou

This would be great - being able to use done() for async testing would really be welcome!

johanneslumpe avatar Jul 12 '14 13:07 johanneslumpe

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.

odf avatar Oct 22 '14 10:10 odf

:+1:

emorikawa avatar Oct 22 '14 22:10 emorikawa

I agree! :+1: done() makes async tests so much nicer.

osdiab avatar Nov 09 '14 00:11 osdiab

:+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();
});

messfromspace avatar Nov 14 '14 13:11 messfromspace

:+1: +1

NoumanSaleem avatar Dec 07 '14 19:12 NoumanSaleem

:+1: @jeffmo How do you think

roderickhsiao avatar Dec 08 '14 20:12 roderickhsiao

:+1:

lo1tuma avatar Dec 22 '14 15:12 lo1tuma

:+1:

cirocosta avatar Jan 05 '15 03:01 cirocosta

:+1:

ncuillery avatar Jan 08 '15 11:01 ncuillery

Yeah, we need it! :+1:

fdubost avatar Jan 08 '15 16:01 fdubost

:+1:

kennydee avatar Jan 09 '15 07:01 kennydee

:+1:

oziks avatar Jan 09 '15 08:01 oziks

:+1:

cmeiller avatar Jan 09 '15 08:01 cmeiller

:+1:

axross avatar Jan 16 '15 12:01 axross

Upgrading to Jasmine 2 would also fix equality issues like the one demonstrated here: https://gist.github.com/randymorris/439a85bccc856ca4e8c1.

randymorris avatar Jan 20 '15 15:01 randymorris

(thumbsup) (plusone) etc...

robrobbins avatar Jan 20 '15 19:01 robrobbins

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)

robrobbins avatar Jan 20 '15 22:01 robrobbins

:+1:

bartgryszko avatar Feb 09 '15 15:02 bartgryszko