Open jwarykowski opened 4 years ago
When attempting to mock this module with Jest we get the following error raised:
jest.mock('parquetjs') ReferenceError: Browser is not defined
The only way around this is to create a manual mock:
__mocks__/parquetjs.js
const parquetjs = { ParquetWriter: jest.fn(), ParquetSchema: jest.fn(), ... } module.exports = parquetjs
@jwarykowski Were you able to figure out why?
When attempting to mock this module with Jest we get the following error raised:
The only way around this is to create a manual mock:
__mocks__/parquetjs.js