File tree Expand file tree Collapse file tree
packages/jest-haste-map/src/crawlers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -185,12 +185,13 @@ module.exports = async function watchmanCrawl(
185185 let nextData ;
186186
187187 const isOld = existingFileData && existingFileData [ H . MTIME ] === mtime ;
188- const hasChanged = existingFileData && sha1hex && existingFileData [ H . SHA1 ] === sha1hex ;
188+ const hasChanged =
189+ existingFileData && sha1hex && existingFileData [ H . SHA1 ] === sha1hex ;
189190
190191 if ( existingFileData && isOld ) {
191192 nextData = existingFileData ;
192193 } else if ( existingFileData && ! hasChanged ) {
193- nextData = [ ... existingFileData ] ;
194+ nextData = [ ...existingFileData ] ;
194195 nextData [ 1 ] = mtime ;
195196 } else {
196197 // See ../constants.js
@@ -202,7 +203,10 @@ module.exports = async function watchmanCrawl(
202203 if ( mappings ) {
203204 for ( const absoluteVirtualFilePath of mappings ) {
204205 if ( ! ignore ( absoluteVirtualFilePath ) ) {
205- const relativeVirtualFilePath = fastPath . relative ( rootDir , filePath ) ;
206+ const relativeVirtualFilePath = fastPath . relative (
207+ rootDir ,
208+ filePath ,
209+ ) ;
206210 files . set ( relativeVirtualFilePath , nextData ) ;
207211 }
208212 }
You can’t perform that action at this time.
0 commit comments