MCPcopy
hub / github.com/jestjs/jest / _persist

Method _persist

packages/jest-haste-map/src/index.ts:736–738  ·  view source on GitHub ↗

* 4. serialize the new `HasteMap` in a cache file.

(hasteMap: InternalHasteMap)

Source from the content-addressed store, hash-verified

734 * 4. serialize the new `HasteMap` in a cache file.
735 */
736 private _persist(hasteMap: InternalHasteMap) {
737 writeFileSync(this._cachePath, serialize(hasteMap));
738 }
739
740 /**
741 * Creates workers or parses files and extracts metadata in-process.

Callers 1

buildMethod · 0.95

Calls 1

serializeFunction · 0.50

Tested by

no test coverage detected