Skip to content

Fix windows directory separator#687

Merged
sindresorhus merged 4 commits intoxojs:mainfrom
skarab42:fix-window-directory-separator
Aug 31, 2022
Merged

Fix windows directory separator#687
sindresorhus merged 4 commits intoxojs:mainfrom
skarab42:fix-window-directory-separator

Conversation

@skarab42
Copy link
Copy Markdown
Contributor

@sindresorhus Under windows some tests on file names did not match because they were compared with different directory separators. This PR fixes this issue using the slash lib where it was required for my case, it is possible that for other configurations (under windows) it should be done elsewhere as well.

Fixes sindresorhus/type-fest#451

Comment thread lib/options-manager.js Outdated
@skarab42 skarab42 requested a review from sindresorhus August 30, 2022 09:22
Comment thread test/options-manager.js Outdated
@skarab42 skarab42 requested a review from sindresorhus August 30, 2022 11:17
@sindresorhus sindresorhus merged commit a608bf1 into xojs:main Aug 31, 2022
@skarab42 skarab42 deleted the fix-window-directory-separator branch August 31, 2022 13:04
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.

Tests no longer run with xo v0.52.2

2 participants