mardi 6 janvier 2015

Jasmine version consistency with Karma

I am running some unit test using Karma and Jasmine

It runs fine on one box but fails on another.

Although both return the same Jasmine version at npm view jasmine version (2.1.1), the actual version used during the test jasmine.getEnv().versionString() differ (1.3.1 vs 2.1.3).





I would like to force Jasmine version to 1.3.1 in both cases.

How can I instruct Karma to use a specific version of Jasmine?


Aucun commentaire:

Enregistrer un commentaire