Skip to content

Use jasmine-core 3.4.0 - #3969

Merged
etpinard merged 4 commits into
masterfrom
jasmine-core-3.4.0
Jun 18, 2019
Merged

Use jasmine-core 3.4.0#3969
etpinard merged 4 commits into
masterfrom
jasmine-core-3.4.0

Conversation

@etpinard

Copy link
Copy Markdown
Contributor

resolves#3368 - getting up-to-speed with the latest version of our test framework, which has two new CLI configs:

  • random, which randomises the test ordering (N.B. jasmine turns this on by default, but we set it to false by default as this would make many of our tests fail)
  • failFast, so we don't need that karma-fail-fast-reporter plugin

About the negateIf commit, see #3368 (comment) for more info.

N.B. jasmine-core v3 does not allow mutation the
Expectation prototyp
... with a default false, overriding the jasmine v3 default
which makes a lot of test fail!
@archmoj

Copy link
Copy Markdown
Contributor

Excellent.
💃 💃 💃

On another note, I am wondering about the root of this warning (happening on master/here, both locally & using CI)?
Screenshot from 2019-06-17 20-40-05

@alexcjohnson

Copy link
Copy Markdown
Collaborator

I am wondering about the root of this warning

this is intentional and has been there forever - though it would be nice to silence it! Pretty sure it's this:

Plotly.relayout(gd,'images[0].source','invalidUrl').then(function(){
varnewSelection=Plotly.d3.select('image');
expect(newSelection.size()).toBe(0);
}).then(done);

@etpinard

etpinard commented Jun 18, 2019

Copy link
Copy Markdown
ContributorAuthor

Pretty sure it's this [that layout_images_test.js test]

Yes, that's the one. But the 404: /invalidUrl message comes from

which is tricky to mock while still testing this handler:

functionerrorHandler(){
thisImage.remove();
resolve();
}


So, I'll pass. I hope you don't find the 404: /invalidUrl message that annoying. If so, please open an issue.

@etpinard
etpinard merged commit 795220f into masterJun 18, 2019
@etpinard
etpinard deleted the jasmine-core-3.4.0 branch June 18, 2019 14:24
@etpinard

Copy link
Copy Markdown
ContributorAuthor

Fun fact, during the merge commit, all shards in test-jasmine2 and test-jasmine3 passed on the first attempt:

image

🎉

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adapt jasmine tests for jasmine-core@3

3 participants

@etpinard@archmoj@alexcjohnson