Skip to content
This repository has been archived by the owner on Mar 29, 2019. It is now read-only.

Update dependencies and skip symlink test on windows #4

Closed
wants to merge 2 commits into from
Closed

Update dependencies and skip symlink test on windows #4

wants to merge 2 commits into from

Conversation

mceachen
Copy link

@mceachen mceachen commented Apr 8, 2018

This PR fixes the "outdated dependencies" warning badge and should let you run tests on appveyor if you want.

Thanks for making cp-cli!

expect(stats.isFile()).toEqual(true);
expect(stats.isSymbolicLink()).toEqual(false);
});
if (platform() !== 'win32') {
Copy link
Author

@mceachen mceachen Apr 8, 2018

Choose a reason for hiding this comment

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

It's too bad jest doesn't seem to have mocha's skip() feature.

Copy link
Owner

Choose a reason for hiding this comment

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

You can 😉

Copy link
Author

Choose a reason for hiding this comment

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

Jest's .skip only supports static skipping. If you look at mocha's (.skip)[https://mochajs.org/#inclusive-tests] it lets you conditionally call it. The way this code is now, the test is silently omitted on windows (which isn't ideal).

Copy link
Owner

Choose a reason for hiding this comment

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

Ah I understand. That's a cool feature and I didn't knew that. Maybe skip-if is what you are looking for 😉 Unfortunately it's not build in into Jest: jestjs/jest#3652

Copy link
Author

Choose a reason for hiding this comment

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

Yeah, I didn't want to add a dependency to your module just for this. Thanks for releasing a new version!

@screendriver screendriver self-requested a review April 8, 2018 08:34
Copy link
Owner

@screendriver screendriver left a comment

Choose a reason for hiding this comment

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

Thank you for the PR! 🎉
Unfortunately Travis CI is broken now. Could you please fix that?

@screendriver
Copy link
Owner

Because I added some stuff I also did an upgrade to all dependencies and copied your if statement for Windows.

Thank you for your help! 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants