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(config): refactor ConfigSet class #2050

Merged
merged 1 commit into from
Oct 22, 2020
Merged

refactor(config): refactor ConfigSet class #2050

merged 1 commit into from
Oct 22, 2020

Conversation

ahnpnl
Copy link
Collaborator

@ahnpnl ahnpnl commented Oct 21, 2020

Summary

  • Convert most of getters to private fields
  • Optimize logic of mapping user config to internal config
  • Expose a few getters as public apis
  • Rename interface TsJestConfig$diagnostics to TsJestDiagnosticsCfg
  • Change CachedConfigSet to cache transformerConfig string instead of object type

Test plan

Readjusted some unit tests, most of unit tests are the same. Green CI

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

N.A.

- Convert most of getter to private fields
- Optimize logic of mapping user config to internal config
- Expose a few getters as public apis
@coveralls
Copy link

Pull Request Test Coverage Report for Build 6255

  • 145 of 145 (100.0%) changed or added relevant lines in 5 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.1%) to 93.682%

Totals Coverage Status
Change from base Build 6254: 0.1%
Covered Lines: 1028
Relevant Lines: 1057

💛 - Coveralls

@ahnpnl ahnpnl merged commit 7468e51 into kulshekhar:master Oct 22, 2020
@ahnpnl ahnpnl deleted the refactor-config-4 branch October 22, 2020 06:06
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.

None yet

3 participants