1

I am using protractor 3.3.0.

using this answer the output I am getting is jasmine-version:1.3.1 revision 1354556913

AFAIK I should be seeing version 2.x.

looking at the package.json files, I see version 2.3.2 is specified..

so why at runtime am I still getting 1.3.1?

Community
  • 1
  • 1
guy mograbi
  • 27,391
  • 16
  • 83
  • 122
  • You should upgrade to latest version of Jasmine and In your Config file specify jasmine version: framework: 'jasmine2', – Nick Apr 30 '16 at 21:49
  • @Nick nono, this is not needed anymore. Starting from, I think, Protractor 3, `jasmine` in the configuration actually means `jasmine2`. – alecxe Apr 30 '16 at 21:50
  • Yes, by default it takes Jasmine2 :) – Nick Apr 30 '16 at 21:51

1 Answers1

0

So the changelog says everything should be working fine but it doesn't.

I found I can specify 'framework' : 'jasmine2' in protractor config..

that works well and resolves my problem.

Even though the changelog says you don't have too since 'framework':'jasmine' will also use jasmine 2.3.2, it doesn't.

For those still having this problem and cannot upgrade to jasmine 2 for some reason, you can use throw Error with this.isNot. worked pretty well but I prefer jasmine 2..

guy mograbi
  • 27,391
  • 16
  • 83
  • 122