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

chore: switch valid-local-dependency tests to not rely on file system casing #64

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

JoshuaKGoldberg
Copy link
Owner

Fixes #60.

The problem was the invalid cases weren't giving errors when the resolved path differed from file system casing. Requested paths like .../Valid-local-dependency were passing when the file case on system was .../valid-local-dependency. I played a bit with adding explicit logic to check for case sensitivity but:

  • That can get complicated
  • Not all operating systems are case sensitive by default

...so this instead switches the tests to use paths that differ in more than just casing.

@kendallgassner
Copy link
Collaborator

Thank you for doing this!

@JoshuaKGoldberg JoshuaKGoldberg merged commit 8b2f1e4 into main Nov 6, 2023
1 check passed
@JoshuaKGoldberg JoshuaKGoldberg deleted the valid-local-dependency-tests-invalid-paths branch November 6, 2023 20:09
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.

Test failures on main with valid-local-dependency.js
2 participants