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

test: Separate the test for windows and others in gatsby-plugin-feed #8906

Conversation

edykim
Copy link
Contributor

@edykim edykim commented Oct 8, 2018

Windows uses a different type of directory separator and it breaks the test cause of jest mock.

Maybe the test should not use jest mock in this case but I can see the reason why it is used in here. The test will separate via it.skip() which jest provided as a temporary workaround.

edykim added 2 commits October 7, 2018 22:51
Windows uses different type of directory separator and it breaks
the test cause of jest mock. The test will separate via it.skip()
which jest provided as a temporary workaround.
@pieh
Copy link
Contributor

pieh commented Oct 8, 2018

Here's alternative fix for win32 - #8836 - upside for this one is you don't need to update separately snapshots for windows and unix

@edykim
Copy link
Contributor Author

edykim commented Oct 8, 2018

Looks much better. Thanks @pieh, learning everyday!

@edykim edykim closed this Oct 8, 2018
Sign up for free to 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.

2 participants