metro/scripts/setupJest.js
David Aurelio 768183db2b metro-babel-register: node 6 compat
Summary:
Our prettier config inserts trailing commas into function calls. This file is supposed to run on vanilla node 6.

Here, we move files into the `src/` subdirectory, which gets transformed in the package publishing process.

Reviewed By: rafeca, mjesun

Differential Revision: D7788438

fbshipit-source-id: 6a70d113a82410a60a66bba4d7564f9376bb6d0b
2018-04-27 07:15:56 -07:00

13 lines
313 B
JavaScript

/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
'use strict';
global.Promise = require('promise');
require('../packages/metro-babel-register/src/node-polyfills');