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

Fix Jest tests that fail on Windows #896

Merged
merged 2 commits into from
Aug 10, 2018
Merged

Conversation

tom-auger
Copy link
Contributor

Motivation

Fix the Jest tests that fail on Windows, and suppress the noise that gets emitted from the 'Build files' test suite.

The problem with the failing tests was path separators separators being hard coded to '/'.

The build-tests emit a load of warnings to do with translation, e.g:

Could not find a string translation in 'es-ES' for string 'About Slash|no description given'. Using English version instead.

These fill up the console and make it difficult to see if the tests are actually passing or not. Given they can just be ignored (they aren't fatal errors, and aren't related to what the tests are checking), I suppressed the console output when the yarn build command is run within the 'Build files' test suite.

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

Run the Jest tests and make sure they all pass.
I ran the tests on both Windows and Ubuntu and they pass.

Related PRs

N/A

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Aug 10, 2018
@tom-auger tom-auger changed the title Fix tests Fix Jest tests that fail on Windows Aug 10, 2018
@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-preview ready!

Built with commit 2a67560

https://deploy-preview-896--docusaurus-preview.netlify.com

Copy link
Contributor

@endiliey endiliey left a comment

Choose a reason for hiding this comment

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

LGTM

@endiliey endiliey merged commit 3f896c8 into facebook:master Aug 10, 2018
@tom-auger tom-auger deleted the fix-tests branch August 10, 2018 16:09
@endiliey endiliey mentioned this pull request Sep 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants