Fix tests related to event-target-shim

Summary: @​public

Jest has an issue where if you export `Symbol` it crashes badly. Since event-target-shim does that, it breaks everything. Mocking that module fixes the issue until @cpojer comes back from vacation and fixes the bug in Jest itself.

Reviewed By: @jingc

Differential Revision: D2503562
This commit is contained in:
Christopher Chedeau 2015-10-02 12:27:10 -07:00 committed by facebook-github-bot-6
parent b8c42f7f6f
commit 6f84ccf51a
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
// Jest fatals for the following statement (minimal repro case)
//
// exports.something = Symbol;
//
// Until it is fixed, mocking the entire node module makes the
// problem go away.
'use strict';
module.exports = function() {};