fix E2E tests

Reviewed By: @mkonicek

Differential Revision: D2526310

fb-gh-sync-id: 1c04f56073dc5b393a36b258c039fdfd85ab83a2
This commit is contained in:
Martín Bigio 2015-10-09 07:56:00 -07:00 committed by facebook-github-bot-5
parent d6db826e55
commit fc7d01e2ab
3 changed files with 18 additions and 2 deletions

16
babelRegisterOnly.js Normal file
View File

@ -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});
};

View File

@ -8,7 +8,7 @@
*/ */
'use strict'; 'use strict';
require('../babelRegisterOnly')([ require('./babelRegisterOnly')([
/packager\/[^\/]*/ /packager\/[^\/]*/
]); ]);

View File

@ -8,7 +8,7 @@
*/ */
'use strict'; 'use strict';
require('../../babelRegisterOnly')([/react-packager\/src/]); require('../babelRegisterOnly')([/react-packager\/src/]);
useGracefulFs(); useGracefulFs();