Feature/unit tests (#184)

This commit is contained in:
Daniel Lautzenheiser
2022-12-04 22:15:59 -05:00
committed by GitHub
parent 255e4d8883
commit ec46a6f760
23 changed files with 1423 additions and 115 deletions

14
core/test/setupEnv.js Normal file
View File

@ -0,0 +1,14 @@
global.TextEncoder = TextEncoder;
global.TextDecoder = TextDecoder;
if (typeof window === 'undefined') {
global.window = {
URL: {
createObjectURL: jest.fn(),
},
localStorage: {
removeItem: jest.fn(),
getItem: jest.fn(),
},
};
}