Skip to content

Adapt jasmine tests for jasmine-core@3 #3368

Description

@etpinard
npm i jasmine-core@3.3.0 karma.jasmine@2.0.1
npm run test-jasmine -- --nowatch

make numerous tests fail, spits out deprecation warnings:

image

and doesn't get along with our negateIf custom matcher

jasmine.Expectation.prototype.negateIf = function(negate) {
if(negate) return this.not;
return this;
};

image


More info about jasmine@3:

https://github.com/jasmine/jasmine/blob/master/release_notes/3.0.md

More info about karma-jasmine@2:

https://github.com/karma-runner/karma-jasmine/blob/master/CHANGELOG.md#200-2018-11-15

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions