Determines if the current process is being run by Jest.
- Since
- 1.0.0
- Source
Returns:
Returns true if the current process is being run by Jest. Returns false otherwise.
- Type:
- boolean
Example
import { isJestTest } from "@gravityforms/utils";
function Example() {
const isJestTestRunning = isJestTest();
}