mirror of https://github.com/status-im/metro.git
fix E2E tests
Reviewed By: @mkonicek Differential Revision: D2526310 fb-gh-sync-id: 1c04f56073dc5b393a36b258c039fdfd85ab83a2
This commit is contained in:
parent
d6db826e55
commit
fc7d01e2ab
|
@ -0,0 +1,16 @@
|
||||||
|
/**
|
||||||
|
* Copyright (c) 2015-present, Facebook, Inc.
|
||||||
|
* All rights reserved.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the BSD-style license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree. An additional grant
|
||||||
|
* of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
*/
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var _only = [];
|
||||||
|
|
||||||
|
module.exports = function(onlyList) {
|
||||||
|
_only = _only.concat(onlyList);
|
||||||
|
require('babel-core/register')({only: _only});
|
||||||
|
};
|
|
@ -8,7 +8,7 @@
|
||||||
*/
|
*/
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
require('../babelRegisterOnly')([
|
require('./babelRegisterOnly')([
|
||||||
/packager\/[^\/]*/
|
/packager\/[^\/]*/
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
*/
|
*/
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
require('../../babelRegisterOnly')([/react-packager\/src/]);
|
require('../babelRegisterOnly')([/react-packager\/src/]);
|
||||||
|
|
||||||
useGracefulFs();
|
useGracefulFs();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue