Skip to content

fix(compiler): use resolveModuleNames TypeScript API to get resolved modules for test files#1784

Merged
ahnpnl merged 2 commits intokulshekhar:masterfrom
ahnpnl:type-checking
Jul 8, 2020
Merged

fix(compiler): use resolveModuleNames TypeScript API to get resolved modules for test files#1784
ahnpnl merged 2 commits intokulshekhar:masterfrom
ahnpnl:type-checking

Conversation

@ahnpnl
Copy link
Copy Markdown
Collaborator

@ahnpnl ahnpnl commented Jul 7, 2020

Summary

Remove workaround in compiler-utils.ts and replace with resolveModuleNames from LanguageService API.

Fixes #1747

Test plan

Added unit tests. Green CI

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

N.A.

@ahnpnl ahnpnl requested a review from kulshekhar as a code owner July 7, 2020 15:19
@ahnpnl ahnpnl changed the title fix(compiler): use resolveModuleNames TypeScript API fix(compiler): use resolveModuleNames TypeScript API to get resolved modules for test files Jul 7, 2020
@coveralls
Copy link
Copy Markdown

coveralls commented Jul 7, 2020

Pull Request Test Coverage Report for Build 5295

  • 25 of 25 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.1%) to 92.756%

Totals Coverage Status
Change from base Build 5294: -0.1%
Covered Lines: 1053
Relevant Lines: 1088

💛 - Coveralls

kulshekhar
kulshekhar previously approved these changes Jul 7, 2020
@ahnpnl
Copy link
Copy Markdown
Collaborator Author

ahnpnl commented Jul 7, 2020

sorry I was trying to improve unit tests for the async writeFile. This PR is in final state now :)

@ahnpnl
Copy link
Copy Markdown
Collaborator Author

ahnpnl commented Jul 8, 2020

did a final push, noticed a debug log was wrong 😃

@ahnpnl ahnpnl merged commit 5f26054 into kulshekhar:master Jul 8, 2020
@ahnpnl ahnpnl deleted the type-checking branch July 8, 2020 09:12
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.

Regression: With cached results, changes to type definitions are not detected

3 participants