Skip to content

Commit

Permalink
try to fix jest
Browse files Browse the repository at this point in the history
Signed-off-by: Ihor Dykhta <[email protected]>
  • Loading branch information
igorDykhta committed Oct 23, 2024
1 parent 5975b07 commit 3507bbc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions jest.setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
import '@testing-library/jest-dom';

// ReferenceError: ReadableStream is not defined in @loaders.gl/polyfills
const {ReadableStream} = require('node:stream/web');
global.ReadableStream = ReadableStream;
globalThis.ReadableStream = ReadableStream;
import {ReadableStream} from 'node:stream/web';
this.global.ReadableStream = ReadableStream;

import {installFilePolyfills} from '@loaders.gl/polyfills';
installFilePolyfills();
Expand Down

0 comments on commit 3507bbc

Please sign in to comment.