mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 09:12:02 +00:00
6f84ccf51a
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
10 lines
233 B
JavaScript
10 lines
233 B
JavaScript
// 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() {};
|