Daniel Lautzenheiser f2c9f42364 fix: build issues
2022-12-22 12:11:42 -05:00

19 lines
332 B
JavaScript

if (typeof window === 'undefined') {
global.window = {
URL: {
createObjectURL: jest.fn(),
},
localStorage: {
removeItem: jest.fn(),
getItem: jest.fn(),
},
navigator: {
platform: 'Win',
},
};
}
global.URL.createObjectURL = jest.fn();
jest.mock('../src/formats/util/j-toml.min');