mirror of https://github.com/status-im/metro.git
[Tests] Update tests to run on io.js with the latest version of jest
Updates the tests in small ways so they run on io.js with some updates: - The Cache test which relies on Promises uses `runAllImmediates` for modern versions of Node because bluebird uses `setImmediate` instead of `process.nextTick` for Node >0.10. Test Plan: Run `npm test` with the latest version of jest.
This commit is contained in:
parent
4ef609192d
commit
5a0723cfba
|
@ -229,7 +229,7 @@ describe('JSTransformer Cache', function() {
|
||||||
return Promise.resolve('baz value');
|
return Promise.resolve('baz value');
|
||||||
});
|
});
|
||||||
|
|
||||||
jest.runAllTicks();
|
jest.runAllImmediates();
|
||||||
expect(fs.writeFile).toBeCalled();
|
expect(fs.writeFile).toBeCalled();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue