mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix exceptions when running grunt test --debug
This commit is contained in:
@@ -20,7 +20,7 @@ describe('ReactMount', function() {
|
||||
var WebComponents = WebComponents;
|
||||
|
||||
try {
|
||||
if (WebComponents === undefined && jest !== undefined) {
|
||||
if (WebComponents === undefined && typeof jest !== 'undefined') {
|
||||
WebComponents = require('WebComponents');
|
||||
}
|
||||
} catch(e) {
|
||||
|
||||
+3
-1
@@ -6374,4 +6374,6 @@ CustomElements.addModule(function(scope) {
|
||||
window.Platform = scope;
|
||||
})(window.WebComponents);
|
||||
|
||||
module.exports = window.WebComponents;
|
||||
if (typeof exports !== 'undefined') {
|
||||
module.exports = window.WebComponents;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user