Skip to content

Commit

Permalink
Expose SHA-1s via HasteFS (#5874)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjesun authored Mar 26, 2018
1 parent 3c65b72 commit f31f253
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/jest-haste-map/src/haste_fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit f31f253

Please sign in to comment.