-
Notifications
You must be signed in to change notification settings - Fork 2
Update dependencies and skip symlink test on windows #4
Conversation
expect(stats.isFile()).toEqual(true); | ||
expect(stats.isSymbolicLink()).toEqual(false); | ||
}); | ||
if (platform() !== 'win32') { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can 😉
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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!
There was a problem hiding this 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?
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! 👍 |
This PR fixes the "outdated dependencies" warning badge and should let you run tests on appveyor if you want.
Thanks for making
cp-cli
!