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 6747e1d commit d864d12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jest.setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
import '@testing-library/jest-dom';

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

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

0 comments on commit d864d12

Please sign in to comment.