refactor: monorepo setup with lerna (#243)
This commit is contained in:
committed by
GitHub
parent
dac29fbf3c
commit
504d95c34f
16
packages/core/test/setupEnv.js
Normal file
16
packages/core/test/setupEnv.js
Normal file
@ -0,0 +1,16 @@
|
||||
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();
|
Reference in New Issue
Block a user