e-lado
Version:
[](https://circleci.com/gh/sharetribe/sharetribe/tree/master) [](https://gemnasium.com/sharetribe/shar
23 lines (17 loc) • 717 B
JavaScript
/**
* Copyright (c) 2014-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.
*
*
*/
;
const ReactElementPlugin = require('pretty-format/build/plugins/ReactElement');
const ReactTestComponentPlugin = require('pretty-format/build/plugins/ReactTestComponent');
let PLUGINS = [ReactElementPlugin, ReactTestComponentPlugin];
exports.addPlugins = (plugins
// $FlowFixMe
) => PLUGINS = plugins.map(plugin => require(plugin)).concat(PLUGINS);
exports.getPlugins = () => PLUGINS;