From d1772eebe6a71a00a63b862f6c28c6aee32573c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Bigio?= Date: Tue, 11 Aug 2015 11:04:34 -0700 Subject: [PATCH] [react-packager] Fix Cache-test --- react-packager/src/Cache/__tests__/Cache-test.js | 8 ++++++++ 1 file changed, 8 insertions(+) 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',