mirror of
https://github.com/status-im/react-native.git
synced 2025-01-28 18:25:06 +00:00
[react-packager] Fix Cache-test
This commit is contained in:
parent
eb402d8c7d
commit
70624dc347
@ -52,6 +52,14 @@ describe('JSTransformer Cache', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
pit('supports storing multiple fields', () => {
|
pit('supports storing multiple fields', () => {
|
||||||
|
require('fs').stat.mockImpl((file, callback) => {
|
||||||
|
callback(null, {
|
||||||
|
mtime: {
|
||||||
|
getTime: () => {}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
var cache = new Cache({
|
var cache = new Cache({
|
||||||
projectRoots: ['/rootDir'],
|
projectRoots: ['/rootDir'],
|
||||||
transformModulePath: 'x.js',
|
transformModulePath: 'x.js',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user