Skip to content

fix(compiler): check if test file exists before doing type check#1827

Merged
ahnpnl merged 1 commit intokulshekhar:v26.1.4from
ahnpnl:v26.1.4
Jul 25, 2020
Merged

fix(compiler): check if test file exists before doing type check#1827
ahnpnl merged 1 commit intokulshekhar:v26.1.4from
ahnpnl:v26.1.4

Conversation

@ahnpnl
Copy link
Copy Markdown
Collaborator

@ahnpnl ahnpnl commented Jul 24, 2020

Summary

Addressed in #1506 (comment)

The problem is that the test file can be renamed which then makes the link between the imported module with the old test name no longer valid. Therefore we need to check whether the test file still exists before doing type check.

Test plan

Added unit test

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Will release alpha first and then hot fix release later

@ahnpnl ahnpnl requested a review from kulshekhar as a code owner July 24, 2020 15:55
@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 5427

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 92.721%

Totals Coverage Status
Change from base Build 5426: 0.0%
Covered Lines: 1056
Relevant Lines: 1091

💛 - Coveralls

@ahnpnl ahnpnl merged commit cc89d5b into kulshekhar:v26.1.4 Jul 25, 2020
@ahnpnl ahnpnl deleted the v26.1.4 branch July 25, 2020 07:56
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.

3 participants