Protractor / Jasmine shows different versions - what am I doing wrong?

When I do this:

console.log('jasmine-version:' + jasmine.getEnv().versionString());

it prints: jasmine version: 1.3.1 version 1354556913

When I run the "jpmine list" npm list, it prints:

server@0.0.1 /Users/xx/Desktop/workingDirectory
└── jasmine-core@2.1.3 

Why is 2.1.3 displayed and another 1.3.1 displayed?

I do not have 2.1.3 functions, so it works on 1.3.1. How to fix it?

+3
source share
2 answers

You must specify that you want to use jasmine2 in the conf file. Please read the docs here: https://github.com/angular/protractor/blob/master/docs/jasmine-upgrade.md#in-your-conf-file .

1.3, 2.x, , , . ( , 2.x -, 1,3 - )

EDIT: , 2.x , 1.6

+3

Source: https://habr.com/ru/post/1570407/


All Articles