Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to jasmine 3.4 & fix resulting spec failures #80

Merged
merged 1 commit into from
Jun 18, 2019

Conversation

raphinesse
Copy link
Contributor

Replaces #74 together with #79.

expect(Q.isPromise(superspawn.spawn(LS))).toBe(true);
expect(Q.isPromise(superspawn.spawn('invalid_command'))).toBe(true);
it('should resolve on success', () => {
return expectAsync(superspawn.spawn(LS)).toBeResolved();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly off-topic: I think it should be possible to use a very dumb command such as echo that is exactly the same between Windows cmd, ps, and *nix *sh (including Windows "nix" *sh). This should probably be done in a separate PR, someday. Not a blocker.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice. Although I hope we will sunset superspawn before that 😉

@raphinesse
Copy link
Contributor Author

@brodybits thanks for the fast response. Just waiting for AppVeyor CI to succeed.

@brodycj
Copy link
Contributor

brodycj commented Jun 18, 2019

Yeah, AppVeyor now seems to be slow on Apache Cordova. I generally setup Travis CI & AppVeyor CI on my forks whenever possible, for another sanity check. And +1 for sunsetting superspawn, as it would really help finish removing q. And I had one more idea, maybe worth $0.02:

In case of improvements that are very closely related, I would personally try to propose them together in a single PR, to be merged in a merge commit, for the sake of clarity. (Also avoid the chance of others doing parallel investigations) Just an idea.

I wish GitHub would have some better support for related PRs. Also for people to suggest changes to multiple lines.

@erisu
Copy link
Member

erisu commented Jun 18, 2019

@raphinesse I am wondering if the fix you applied for the failing spec can also be applied in iOS.

I pined a few repo's Jasmine dependency to ~3.1.0 to prevent 3.2.0 which broke some tests. I didn't have time to investigate at that time but wondering now if it is a similar issue.

apache/cordova-ios#393

Copy link
Member

@erisu erisu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM

@raphinesse raphinesse merged commit 5a35287 into apache:master Jun 18, 2019
@raphinesse
Copy link
Contributor Author

@erisu yeah, I think I see the issue there. It's basically unhandled promises 95% of the time. The rest are oddities related to the combination of Jasmine and Q.

Will try to post a fix the following days.

@raphinesse raphinesse deleted the update-jasmine branch June 18, 2019 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants