window.getcomputedstyle is not a function code example
Example: TypeError: getComputedStyle(...).getPropertyValue is not a function
Object.defineProperty(window, 'getComputedStyle', {
value: () => ({
getPropertyValue: (prop) => {
return '';
}
})
});