mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-06 22:37:14 +08:00
Enable ES7 async functions in jest
Reviewed By: voideanvalue Differential Revision: D2840780 fb-gh-sync-id: b86eed0078115d41e4400074f41244e4ae688762
This commit is contained in:
committed by
facebook-github-bot-4
parent
f453e14c8f
commit
2263cddd02
@@ -16,5 +16,6 @@ global.__fbBatchedBridgeConfig = {
|
||||
};
|
||||
|
||||
global.Promise = require('promise');
|
||||
global.regeneratorRuntime = require.requireActual('regenerator/runtime');
|
||||
|
||||
jest.setMock('ErrorUtils', require('ErrorUtils'));
|
||||
|
||||
Reference in New Issue
Block a user