Skip to content

fix(config): invalidate cache when other options in tsconfig change#1788

Merged
ahnpnl merged 3 commits intokulshekhar:masterfrom
ahnpnl:burst-cache
Jul 9, 2020
Merged

fix(config): invalidate cache when other options in tsconfig change#1788
ahnpnl merged 3 commits intokulshekhar:masterfrom
ahnpnl:burst-cache

Conversation

@ahnpnl
Copy link
Copy Markdown
Collaborator

@ahnpnl ahnpnl commented Jul 9, 2020

Summary

At the moment, only compilerOptions in tsconfig.json is considered in cache key. However, if users change other options like include or exclude, the cache isn't invalidated. Since include/exclude impacts on performance with ts-jest, it makes sense to include them into cache key.

This PR is to invalidate cache whenever other options (include/exclude/projectReferences) from tsconfig.json change

Test plan

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 9, 2020 09:01
@coveralls
Copy link
Copy Markdown

coveralls commented Jul 9, 2020

Pull Request Test Coverage Report for Build 5310

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

Totals Coverage Status
Change from base Build 5308: -0.1%
Covered Lines: 1056
Relevant Lines: 1091

💛 - Coveralls

@ahnpnl ahnpnl merged commit 6948855 into kulshekhar:master Jul 9, 2020
@ahnpnl ahnpnl deleted the burst-cache branch July 9, 2020 14:20
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