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

feat(jest-runtime): share cacheFS between runtime and transformer #10901

Merged
merged 2 commits into from
Dec 5, 2020
Merged

feat(jest-runtime): share cacheFS between runtime and transformer #10901

merged 2 commits into from
Dec 5, 2020

Commits on Dec 5, 2020

  1. feat(jest-runtime): share cacheFS between runtime and transformer

    Pass `cacheFS` from `jest-runtime` to `ScriptTransformer`. When `getCacheKey` or `process` is invoked, this `cacheFS` is passed in through transform options
    
    If a transformer does module resolution and reads files, it should populate `cacheFS` so that Jest avoids reading the same files again, improving performance. `cacheFS` stores entries of <file path, file contents>
    
    Closes #10898
    ahnpnl committed Dec 5, 2020
    Configuration menu
    Copy the full SHA
    3c6fb25 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c389808 View commit details
    Browse the repository at this point in the history