Utility to resolve the Jest cache directory from the JEST_CACHE_DIRECTORY environment variable or fallback to `${os.tmpdir()}/jest`. Version 1.0.6 is stable with no recent updates. Provides a simple API for cache directory resolution, ships TypeScript definitions. Designed for Node.js environments.
npm install jest-cache-directoryNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage to get Jest cache directory with fallback to tmpdir/jest.
Set JEST_CACHE_DIRECTORY environment variable to a persistent path if needed.
Use `const { jestCacheDirectory } = require('jest-cache-directory');` instead of default import.