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

Function isFile

packages/jest-config/src/resolveConfigPath.ts:20–21  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

18import {BULLET, DOCUMENTATION_NOTE} from './utils';
19
20const isFile = (filePath: string) =>
21 fs.existsSync(filePath) && !fs.lstatSync(filePath).isDirectory();
22
23const getConfigFilename = (ext: string) => JEST_CONFIG_BASE_NAME + ext;
24

Callers 3

resolveConfigPathFunction · 0.70
findPackageJsonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected