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

Test "chaining" of X-TypeScript-Types headers. #4386

Closed
wants to merge 1 commit into from

Conversation

kitsonk
Copy link
Contributor

@kitsonk kitsonk commented Mar 16, 2020

Refs #4184
Refs #4040

In #4040 we changed the way JavaScript dependencies are analysed in the TypeScript compiler. When we encounter a JavaScript file that doesn't have any types, and checkJs is disabled, we stop the analysis. This caused situations where when there was a typed file, loading an untyped file, loading a typed file, we stop the analysis. We didn't specifically check this "chaining" behaviour in our tests, and there were situations in the while where this behaviour was a regression, so this introduces test to ensure the behaviour as designed is preserved.

Refs denoland#4184
Refs denoland#4040

In denoland#4040 we changed the way JavaScript dependencies are analysed in the
TypeScript compiler.  When we encounter a JavaScript file that doesn't
have any types, and `checkJs` is disabled, we stop the analysis.  This
caused situations where when there was a typed file, loading an
untyped file, loading a typed file, we stop the analysis.  We didn't
specifically check this "chaining" behaviour in our tests, and there
were situations in the while where this behaviour was a regression, so
this introduces test to ensure the behaviour as designed is preserved.
@kitsonk kitsonk force-pushed the test-chained-xtypes branch from 6f48fba to 6ed5b5e Compare March 25, 2020 07:26
@bartlomieju
Copy link
Member

Thanks for the patch @kitsonk, but I'm gonna close it as it's stale. I'm pretty sure I handled this logic in #5029

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