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: refactor TsJestTransformer #2020

Merged
merged 1 commit into from Oct 11, 2020
Merged

refactor: refactor TsJestTransformer #2020

merged 1 commit into from Oct 11, 2020

Conversation

ahnpnl
Copy link
Collaborator

@ahnpnl ahnpnl commented Oct 11, 2020

Summary

  • Use @jest/create-cache-key-function to create cache key
  • Rename interface ConfigSetItem -> CachedConfigSet
  • Rename field configSetItems -> cachedConfigSets
  • Remove configsFor and replace with createOrResolveTransformerCfg
  • Remove cacheKey, toJSON, jsonValue in ConfigSet as already migrated to TsJestTransformer

Test plan

Rewrote unit tests, green CI

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

N.A.

@coveralls
Copy link

coveralls commented Oct 11, 2020

Pull Request Test Coverage Report for Build 6114

  • 32 of 32 (100.0%) changed or added relevant lines in 4 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.3%) to 93.529%

Files with Coverage Reduction New Missed Lines %
src/utils/jsonable-value.ts 1 85.71%
Totals Coverage Status
Change from base Build 6109: 0.3%
Covered Lines: 1091
Relevant Lines: 1122

💛 - Coveralls

kulshekhar
kulshekhar previously approved these changes Oct 11, 2020
- Use `@jest/create-cache-key-function` to create cache key
- Rename interface `ConfigSetItem` -> `CachedConfigSet`
- Rename field `configSetItems` -> `cachedConfigSets`
- Remove `configsFor` and replace with `createOrResolveTransformerCfg`
- Remove `cacheKey`, `toJSON`, `jsonValue` in `ConfigSet` as already migrated to `TsJestTransformer`
@ahnpnl ahnpnl marked this pull request as ready for review October 11, 2020 13:47
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