Skip to content

Conversation

@thecodrr
Copy link
Contributor

@thecodrr thecodrr commented Aug 2, 2019

Summary:

This fixes all the failing tests on Windows.

Test Plan:

Ran yarn test on Windows and everything passed.

@thymikee
Copy link
Member

thymikee commented Aug 2, 2019

Looks like we need to sort the output in the init e2e test

@thecodrr
Copy link
Contributor Author

thecodrr commented Aug 2, 2019

The tests that check templateFiles fail due to incorrect order of files in the directory. Other fail due to incorrect output. toEqual is too strict it seems, we need a little flexible condition, maybe toHaveLength or toContain or maybe check all items individually? We could also create a separatetemplateFiles array for Windows.

@thymikee
Copy link
Member

thymikee commented Aug 2, 2019

Last failure left

}

await fs.emptyDir(directory);
fs.emptyDirSync(directory);
Copy link
Member

Choose a reason for hiding this comment

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

I wonder, why this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Using await causes hang on Windows, that's why.

Copy link
Member

Choose a reason for hiding this comment

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

Geez, Windows is so weird

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It indeed is. 😂😂

@thymikee thymikee merged commit 85c11b2 into react-native-community:fix/windows Aug 4, 2019
@thecodrr thecodrr deleted the fix-tests-on-windows branch August 4, 2019 16:40
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