Description
Situation
- Repo tests (
npm test
) are run with jest - The configured version is [email protected], released Sep 12, 2023 (current
latest
) - Installing [email protected] shows
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
Assessment
Jest v30
jest@next
currently points to [email protected]. This continues to use deprecated transient dependencies:
└─┬ [email protected]
└─┬ @jest/[email protected]
└─┬ @jest/[email protected]
└─┬ [email protected]
└─┬ [email protected]
└─┬ [email protected]
└── [email protected]
These are known unaddressed issues in https://github.com/jestjs/jest/issues
npm test
successfully runs with[email protected]
vitest
- Vitest contains a specific documentation section Migrating from Jest
- The current version is [email protected], released May 19, 2025
Recommendation
- Migrate from Jest to Vitest after dropping ESLint legacy config support. See also Drop legacy config support #257