Always mock FBLogger during unit tests

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
This commit is contained in:
Michel Weststrate
2020-07-01 08:58:40 -07:00
committed by Facebook GitHub Bot
parent 83e6968fa1
commit bf79c9472e
6 changed files with 5 additions and 26 deletions

View File

@@ -10,3 +10,5 @@
global.fetch = require('jest-fetch-mock');
require('immer').enableMapSet();
require('../app/src/fb-stubs/Logger').init(undefined, {isTest: true});