diff --git a/packages/jest-haste-map/src/haste_fs.js b/packages/jest-haste-map/src/haste_fs.js index ee7801514ac5..7f09f9f40098 100644 --- a/packages/jest-haste-map/src/haste_fs.js +++ b/packages/jest-haste-map/src/haste_fs.js @@ -29,6 +29,10 @@ export default class HasteFS { return (this._files[file] && this._files[file][H.DEPENDENCIES]) || null; } + getSha1(file: Path): ?string { + return (this._files[file] && this._files[file][H.SHA1]) || null; + } + exists(file: Path): boolean { return !!this._files[file]; }