JestRuntime:-Using scriptTransformer cache in jest-runner by Biki-das · Pull Request #13735 · jestjs/jest (original) (raw)

The getCachekey changes for a file depending on the particular file it is running, the jest run-time has the _fileTransforms cache that it checks to call before the _scriptTransformer.transform. I am suggesting to not doing the whole cache check and rather use the _scriptTransformer.transform's cache. this way we already have a cache using the getCacheKey, counting this, the performance wont be affected i think.

Quite unsure how should i do a test for the same.