JAVASCRIPT   6

jsdom.js

Guest on 11th June 2021 03:35:42 AM

  1. /**
  2.  * Copyright (c) 2015-present, Facebook, Inc.
  3.  *
  4.  * This source code is licensed under the MIT license found in the
  5.  * LICENSE file in the root directory of this source tree.
  6.  */
  7. 'use strict';
  8.  
  9. // Make sure we're in a Browser-like environment before importing polyfills
  10. // This prevents `fetch()` from being imported in a Node test environment
  11. if (typeof window !== 'undefined') {
  12.   // fetch() polyfill for making API calls.
  13.   require('whatwg-fetch');
  14. }

Raw Paste


Login or Register to edit or fork this paste. It's free.