diff --git a/react-packager/src/Cache/__tests__/Cache-test.js b/react-packager/src/Cache/__tests__/Cache-test.js index 8172a243..f4aef914 100644 --- a/react-packager/src/Cache/__tests__/Cache-test.js +++ b/react-packager/src/Cache/__tests__/Cache-test.js @@ -52,6 +52,14 @@ describe('JSTransformer Cache', () => { }); pit('supports storing multiple fields', () => { + require('fs').stat.mockImpl((file, callback) => { + callback(null, { + mtime: { + getTime: () => {} + } + }); + }); + var cache = new Cache({ projectRoots: ['/rootDir'], transformModulePath: 'x.js',