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

Make canUseWatchEvents test framework more generic so we can add more tests easily #58962

Merged
merged 2 commits into from
Jun 25, 2024

Conversation

sheetalkamat
Copy link
Member

No description provided.

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Jun 21, 2024
Comment on lines +102 to +104
session.host.windowsStyleRoot ?
path.win32.resolve(fileName) :
path.posix.resolve(fileName),
Copy link
Member

Choose a reason for hiding this comment

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

Is this path just used for debug logging? Surprised to see node's real path lib being used here, but tests do pass...

Copy link
Member Author

Choose a reason for hiding this comment

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

Ye this is testing part - where clients like vscode will send win32 like paths instead of normalized so this is testing only

Copy link
Member

Choose a reason for hiding this comment

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

Ah, okay; I think I was just worried about this resolving via a real path on disk like cwd.

Comment on lines +102 to +104
session.host.windowsStyleRoot ?
path.win32.resolve(fileName) :
path.posix.resolve(fileName),
Copy link
Member

Choose a reason for hiding this comment

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

Ah, okay; I think I was just worried about this resolving via a real path on disk like cwd.

@sheetalkamat sheetalkamat merged commit f2f91cc into main Jun 25, 2024
28 checks passed
@sheetalkamat sheetalkamat deleted the watchEventsRefactor branch June 25, 2024 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants