Skip to content

Implement getCacheKey #51

@nvh95

Description

@nvh95

What & Why

  • Now, jest-preview hasn't implemented getCacheKey for css, file and fileCRA transformer.
    'use strict';
    import { processCss } from '../transform';
    function process(src: string, filename: string) {
    return processCss(src, filename);
    }
    export default { process };
  • The reason is that we are not very deeply understand the benefit of getCacheKey. The [docs]((https://jestjs.io/docs/code-transformation) itself is not very detail. But we know it boosts the performance when running Jest since we're caching the transformed files.

How

Metadata

Metadata

Assignees

Labels

enhancementEnhancement to current features/ behaviorsfeature requestRequest a new feature

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions