Summary: Unit tests tend to randomly bail out once FBLogger is (indirectly) required by some module under test. This makes sure FBLogger is stubbed by default. We might want to do the same for `User` in the future. Reviewed By: jknoxville Differential Revision: D22186274 fbshipit-source-id: 2ede364c4b691d69826781355592226b075d8367
15 lines
353 B
JavaScript
15 lines
353 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
*/
|
|
|
|
global.fetch = require('jest-fetch-mock');
|
|
|
|
require('immer').enableMapSet();
|
|
|
|
require('../app/src/fb-stubs/Logger').init(undefined, {isTest: true});
|