Jest Get Type Utility

JSON →
library 29.6.3 ·javascript
verified May 27, 2026

The `jest-get-type` package provides a core utility function, `getType`, designed to accurately determine the type of any JavaScript value (e.g., 'array', 'object', 'string', 'null', 'undefined', 'function', 'symbol'). It is an integral part of the Jest testing framework's monorepo, ensuring consistent type identification across Jest's various internal components. The current specific package version is 29.6.3, aligning with the Jest 29 ecosystem. However, the broader Jest framework recently released its major version 30.0.0, which targets more frequent major releases after a significant previous gap. This utility is primarily used internally by Jest, but can also be imported directly for robust, Jest-aligned type checking in other projects, especially when consistency with Jest's internal logic is desired. It ships with TypeScript types for an enhanced developer experience.

total hits 14
actors 6 distinct systems
last hit 3d ago AhrefsBot
MetaBot
4
GPTBot
2
Script
1
Search engines
1

top countries 🇺🇸 United States · 🇫🇷 France · 🇨🇦 Canada · 🇩🇪 Germany