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

Refactor tsserver, tsc and fourslash-server tests so that paths are always watchable #59844

Merged
merged 19 commits into from
Sep 4, 2024

Conversation

sheetalkamat
Copy link
Member

@sheetalkamat sheetalkamat commented Sep 3, 2024

This is precursor to increase the coverage for tsserver resolution sharing:

  • This ensures that in tsserver, tsc tests the libs are always present.
  • Current directory for tsserver and fourslash-server tests is "vscode" like path thats watchable: /home/src/vscode/projects/bin
  • Current directory for tsc tests needs to be specified all the time (ensures its watchable)
  • Ensured globaltypings location is always watchable: /home/src/typinginstaller/globalcache/data
  • Libs is separate location and is watchable: /home/src/tslibs/ts/lib

This discovered issues:

…e : unless testcase is for unwatchable scenario

TODOs:
- Typing installer test failing because of using incorrect "current directory"
- lib file always:
- External project => tsconfig:
- inferred projects use current directory as "vscode"
- Some of the semantic diagnostics use - full paths rather than relative paths - tsbuildInfo??
TODO: - change verifyTsc to use vfsWithWatch so that we can unify some of the verifications
@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Sep 3, 2024
@sheetalkamat sheetalkamat changed the title [wip] Refactor tsserver, tsc and fourslash-server tests so that paths are always watchable Refactor tsserver, tsc and fourslash-server tests so that paths are always watchable Sep 3, 2024
@sheetalkamat sheetalkamat marked this pull request as ready for review September 3, 2024 23:45
…vice

This helps with diagnosing issues with the watching
@sheetalkamat
Copy link
Member Author

@andrewbranch ready for re-review. Thanks

@sheetalkamat sheetalkamat merged commit 7976d9c into main Sep 4, 2024
32 checks passed
@sheetalkamat sheetalkamat deleted the testsRefactoring branch September 4, 2024 21:22
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
None yet
Development

Successfully merging this pull request may close these issues.

3 participants