make jest include polyfills so that it works on node 6

This commit is contained in:
Jean Lauliac 2017-06-01 10:47:51 +01:00
parent 921005d44d
commit 8af0267fdf
2 changed files with 3 additions and 1 deletions

View File

@ -57,7 +57,8 @@
"source-map", "source-map",
"denodeify", "denodeify",
"fbjs", "fbjs",
"sinon" "sinon",
"core-js"
] ]
} }
} }

View File

@ -9,3 +9,4 @@
'use strict'; 'use strict';
global.Promise = require('promise'); global.Promise = require('promise');
require('../packages/metro-bundler/build/setupNodePolyfills');